[vlc-devel] commit: live555: fix "unpause" and remove startseq, which is no longer needed because we don't do NPT calculations ourselves. (Derk-Jan Hartman )

git version control git at videolan.org
Mon Aug 4 15:46:03 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Mon Aug  4 15:42:24 2008 +0200| [82891b2d758a81c7ffecafdfb9cf247f98887bd5] | committer: Derk-Jan Hartman 

live555: fix "unpause" and remove startseq, which is no longer needed because we don't do NPT calculations ourselves.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=82891b2d758a81c7ffecafdfb9cf247f98887bd5
---

 modules/demux/live555.cpp |   27 +++++++--------------------
 1 files changed, 7 insertions(+), 20 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 4cb5ab3..2ae9ab1 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -155,7 +155,6 @@ typedef struct
     char            waiting;
     int64_t         i_pts;
     int64_t         i_npt;
-    u_int32_t       i_start_seq;
 
 } live_track_t;
 
@@ -1060,14 +1059,6 @@ static int Play( demux_t *p_demux )
     }
     p_sys->i_pcr = 0;
 
-    for( i = 0; i < p_sys->i_track; i++ )
-    {
-        if( !p_sys->track[i]->b_rtcp_sync )
-            p_sys->track[i]->i_pts = (int64_t) ( p_sys->track[i]->sub->rtpInfo.timestamp * (double)1000000.0 );
-        p_sys->track[i]->i_start_seq = (int)p_sys->track[i]->sub->rtpInfo.seqNum;
-        msg_Info( p_demux, "set startseq: %u", p_sys->track[i]->i_start_seq );
-    }
-
     /* Retrieve the starttime if possible */
     p_sys->i_npt_start = (int64_t)( p_sys->ms->playStartTime() * (double)1000000.0 );
     if( p_sys->i_npt_start < 0 )
@@ -1277,9 +1268,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 for( i = 0; i < p_sys->i_track; i++ )
                 {
                     p_sys->track[i]->b_rtcp_sync = false;
-                    p_sys->track[i]->i_pts = (int64_t) ( p_sys->track[i]->sub->rtpInfo.timestamp * (double)1000000.0 );
-                    p_sys->track[i]->i_start_seq = p_sys->track[i]->sub->rtpInfo.seqNum;
-                    msg_Info( p_demux, "set pos startseq: %u", p_sys->track[i]->i_start_seq );
+                    p_sys->track[i]->i_pts = 0;
                 }
 
                 /* Retrieve the starttime if possible */
@@ -1400,15 +1389,13 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             else if( !b_bool && p_sys->p_timeout != NULL ) 
                 p_sys->p_timeout->b_handle_keep_alive = false;
 
-            es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
-            p_sys->i_pcr = 0;
-
-            for( i = 0; i < p_sys->i_track; i++ )
+            for( i = 0; !b_bool && i < p_sys->i_track; i++ )
             {
-                if( !p_sys->track[i]->b_rtcp_sync )
-                    p_sys->track[i]->i_pts = 0; // (int64_t) ( p_sys->track[i]->sub->rtpInfo.timestamp * (double)1000000.0 );
-                p_sys->track[i]->i_start_seq = p_sys->track[i]->sub->rtpInfo.seqNum;
-                msg_Info( p_demux, "set pause startseq: %u", p_sys->track[i]->i_start_seq );
+                live_track_t *tk = p_sys->track[i];
+                tk->b_rtcp_sync = false;
+                tk->i_pts = 0;
+                p_sys->i_pcr = 0;
+                es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
             }
 
             /* Retrieve the starttime if possible */




More information about the vlc-devel mailing list