Commit 3d958c18 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Enable RTSP rtpInfo track synchronization in live555 demuxer.

parent c77ee763
...@@ -546,7 +546,7 @@ describe: ...@@ -546,7 +546,7 @@ describe:
} }
/***************************************************************************** /*****************************************************************************
* Connect: prepares the subsessions and does the SETUP * SessionsSetup: prepares the subsessions and does the SETUP
*****************************************************************************/ *****************************************************************************/
static int SessionsSetup( demux_t *p_demux ) static int SessionsSetup( demux_t *p_demux )
{ {
...@@ -955,13 +955,13 @@ static int Play( demux_t *p_demux ) ...@@ -955,13 +955,13 @@ static int Play( demux_t *p_demux )
} }
p_sys->i_pcr = 0; p_sys->i_pcr = 0;
#if 0 #if (LIVEMEDIA_LIBRARY_VERSION_INT >= 1195257600)
/* TODO */ /* TODO */
for( i = 0; i < p_sys->i_track; i++ ) for( i = 0; i < p_sys->i_track; i++ )
{ {
//p_sys->track[i]->i_pts = 0; 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; p_sys->track[i]->i_start_seq = (int)p_sys->track[i]->sub->rtpInfo.seqNum;
msg_Dbg( p_demux, "set startseq: %u", p_sys->track[i]->i_start_seq ); msg_Info( p_demux, "set startseq: %u", p_sys->track[i]->i_start_seq );
} }
#endif #endif
...@@ -1171,13 +1171,13 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -1171,13 +1171,13 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
} }
es_out_Control( p_demux->out, ES_OUT_RESET_PCR ); es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
p_sys->i_pcr = 0; p_sys->i_pcr = 0;
#if 0 #if (LIVEMEDIA_LIBRARY_VERSION_INT >= 1195257600)
/* Retrieve RTP-Info values */ /* Retrieve RTP-Info values */
for( i = 0; i < p_sys->i_track; i++ ) for( i = 0; i < p_sys->i_track; i++ )
{ {
//p_sys->track[i]->i_pts = 0; 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; p_sys->track[i]->i_start_seq = p_sys->track[i]->sub->rtpInfo.seqNum;
msg_Dbg( p_demux, "set pos startseq: %u", p_sys->track[i]->i_start_seq ); msg_Info( p_demux, "set pos startseq: %u", p_sys->track[i]->i_start_seq );
} }
#endif #endif
#if (LIVEMEDIA_LIBRARY_VERSION_INT >= 9999999999) #if (LIVEMEDIA_LIBRARY_VERSION_INT >= 9999999999)
...@@ -1248,12 +1248,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -1248,12 +1248,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
} }
es_out_Control( p_demux->out, ES_OUT_RESET_PCR ); es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
p_sys->i_pcr = 0; p_sys->i_pcr = 0;
#if 0 #if (LIVEMEDIA_LIBRARY_VERSION_INT >= 1195257600)
for( i = 0; i < p_sys->i_track; i++ ) for( i = 0; i < p_sys->i_track; i++ )
{ {
//p_sys->track[i]->i_pts = 0; 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; p_sys->track[i]->i_start_seq = p_sys->track[i]->sub->rtpInfo.seqNum;
msg_Dbg( p_demux, "set pause startseq: %u", p_sys->track[i]->i_start_seq ); msg_Info( p_demux, "set pause startseq: %u", p_sys->track[i]->i_start_seq );
} }
#endif #endif
#if (LIVEMEDIA_LIBRARY_VERSION_INT >= 9999999999) #if (LIVEMEDIA_LIBRARY_VERSION_INT >= 9999999999)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment