[MPlayer-cvslog] r24883 - in trunk: configure libmpdemux/demux_nemesi.c

lu_zero subversion at mplayerhq.hu
Mon Oct 29 19:31:47 CET 2007


Author: lu_zero
Date: Mon Oct 29 19:31:47 2007
New Revision: 24883

Log:
Update to use newer libnemesi, should fix desync, fps guessing may fail now

Modified:
   trunk/configure
   trunk/libmpdemux/demux_nemesi.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Mon Oct 29 19:31:47 2007
@@ -6238,7 +6238,7 @@ echores "$_qtx"
 echocheck "Nemesi Streaming Media libraries"
 if test "$_nemesi" = auto  && test "$_network" = yes ; then
     _nemesi=no
-    if $_pkg_config libnemesi --atleast-version=0.6.2 ; then
+    if $_pkg_config libnemesi --atleast-version=0.6.3 ; then
         _ld_extra="$_ld_extra `$_pkg_config --libs libnemesi`"
         _nemesi=yes
     fi

Modified: trunk/libmpdemux/demux_nemesi.c
==============================================================================
--- trunk/libmpdemux/demux_nemesi.c	(original)
+++ trunk/libmpdemux/demux_nemesi.c	Mon Oct 29 19:31:47 2007
@@ -43,7 +43,7 @@ static void link_session_and_fetch_conf(
                                         rtp_buff * buff, unsigned int * fps)
 {
     extern float force_fps;
-    rtp_ssrc *ssrc;
+    rtp_ssrc *ssrc = NULL;
     rtsp_ctrl * ctl = ndsd->rtsp;
     rtp_frame * fr = &ndsd->first_pkt[stype];
     rtp_buff trash_buff;
@@ -54,15 +54,8 @@ static void link_session_and_fetch_conf(
         buff = &trash_buff;
 
     if ( (buff != NULL) || (fps != NULL) ) {
-        rtp_fill_buffers(rtsp_get_rtp_th(ctl));
-        for (ssrc = rtp_active_ssrc_queue(rtsp_get_rtp_queue(ctl));
-             ssrc;
-             ssrc = rtp_next_active_ssrc(ssrc)) {
-            if (ssrc->rtp_sess == sess) {
-                rtp_fill_buffer(ssrc, fr, buff);
-                break;
-            }
-        }
+        while ( !(ssrc = rtp_session_get_ssrc(sess, ctl)) );
+        rtp_fill_buffer(ssrc, fr, buff);
 
         if ( (force_fps == 0.0) && (fps != NULL) ) {
             rtp_fill_buffers(rtsp_get_rtp_th(ctl));
@@ -184,6 +177,7 @@ demuxer_t* demux_open_rtp(demuxer_t* dem
                 demux_stream_t* d_video;
                 int fps = 0;
                 rtp_buff buff;
+                memset(&buff, 0, sizeof(rtp_buff));
 
                 mp_msg(MSGT_DEMUX, MSGL_INFO, "Detected as VIDEO stream...\n");
 



More information about the MPlayer-cvslog mailing list