[MPlayer-cvslog] r25025 - trunk/libmpdemux/demux_nemesi.c

Nico Sabbi Nicola.Sabbi at poste.it
Mon Nov 12 18:07:14 CET 2007


Il Monday 12 November 2007 17:26:33 lu_zero ha scritto:
> Author: lu_zero
> Date: Mon Nov 12 17:26:33 2007
> New Revision: 25025
>
> Log:
> Refactor demux_nemesi (from amol)
>
> Modified:
>    trunk/libmpdemux/demux_nemesi.c
>
>
> -        if ( (force_fps == 0.0) && (fps != NULL) ) {
> -            rtp_fill_buffers(rtsp_get_rtp_th(ctl));
> +        if ( (force_fps == 0.0) && (fps != NULL) )
>              *fps = rtp_get_fps(ssrc);
> -        }

cosmetics

>      }
>  }
>
> @@ -241,75 +263,63 @@ demuxer_t* demux_open_rtp(demuxer_t* dem
>  }
>
>  static int get_data_for_session(Nemesi_DemuxerStreamData * ndsd,
> -                                Nemesi_SessionType stype,
> rtp_frame * fr) +                                Nemesi_SessionType
> stype, rtp_ssrc * ssrc, +                                rtp_frame
> * fr)
>  {
> -    rtsp_ctrl * ctl = ndsd->rtsp;
> -    rtp_ssrc *ssrc = NULL;
> -
> -    for (ssrc = rtp_active_ssrc_queue(rtsp_get_rtp_queue(ctl));
> -         ssrc;
> -         ssrc = rtp_next_active_ssrc(ssrc)) {
> -        if (ssrc->rtp_sess == ndsd->session[stype]) {
> -            if (ndsd->first_pkt[stype].len != 0) {
> -                fr->data = ndsd->first_pkt[stype].data;
> -                fr->time_sec = ndsd->first_pkt[stype].time_sec;
> -                fr->len = ndsd->first_pkt[stype].len;
> -                ndsd->first_pkt[stype].len = 0;
> -                return RTP_FILL_OK;
> -            } else {
> -                rtp_buff buff;
> -                return rtp_fill_buffer(ssrc, fr, &buff);
> -            }
> -        }
> +    if (ndsd->first_pkt[stype].len != 0) {
> +        fr->data = ndsd->first_pkt[stype].data;
> +        fr->time_sec = ndsd->first_pkt[stype].time_sec;
> +        fr->len = ndsd->first_pkt[stype].len;
> +        ndsd->first_pkt[stype].len = 0;
> +        return RTP_FILL_OK;
> +    } else {
> +        rtp_buff buff;
> +        return rtp_fill_buffer(ssrc, fr, &buff);
>      }
> +}

cosmetics

I hope you will also address the other issues I reported: 
- a LUT for every stream type will prevent the file to grow to
infinity with the addition of new supported codecs
- cohexistence with native rtsp and live



More information about the MPlayer-cvslog mailing list