[MPlayer-cvslog] r26071 - trunk/libmpdemux/demux_ts.c
nicodvb
subversion at mplayerhq.hu
Sat Feb 23 11:42:25 CET 2008
Author: nicodvb
Date: Sat Feb 23 11:42:24 2008
New Revision: 26071
Log:
reset_fifos() resets demuxer->reference_clock to MP_NOPTS_VALUE
Modified:
trunk/libmpdemux/demux_ts.c
Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c (original)
+++ trunk/libmpdemux/demux_ts.c Sat Feb 23 11:42:24 2008
@@ -3086,8 +3086,9 @@ static int ts_parse(demuxer_t *demuxer ,
extern void skip_audio_frame(sh_audio_t *sh_audio);
-static void reset_fifos(ts_priv_t* priv, int a, int v, int s)
+static void reset_fifos(demuxer_t *demuxer, int a, int v, int s)
{
+ ts_priv_t* priv = demuxer->priv;
if(a)
{
if(priv->fifo[0].pack != NULL)
@@ -3117,6 +3118,7 @@ static void reset_fifos(ts_priv_t* priv,
}
priv->fifo[2].offset = 0;
}
+ demuxer->reference_clock = MP_NOPTS_VALUE;
}
@@ -3134,7 +3136,7 @@ static void demux_seek_ts(demuxer_t *dem
//================= seek in MPEG-TS ==========================
ts_dump_streams(demuxer->priv);
- reset_fifos(priv, sh_audio != NULL, sh_video != NULL, demuxer->sub->id > 0);
+ reset_fifos(demuxer, sh_audio != NULL, sh_video != NULL, demuxer->sub->id > 0);
if(sh_audio != NULL)
@@ -3280,7 +3282,7 @@ static int demux_ts_control(demuxer_t *d
n = *((int*)arg);
if(n == -2)
{
- reset_fifos(priv, areset, vreset, 0);
+ reset_fifos(demuxer, areset, vreset, 0);
ds->id = -2;
ds->sh = NULL;
ds_free_packs(ds);
@@ -3322,7 +3324,7 @@ static int demux_ts_control(demuxer_t *d
if(sh)
{
if(ds->id != priv->ts.streams[i].id)
- reset_fifos(priv, areset, vreset, 0);
+ reset_fifos(demuxer, areset, vreset, 0);
ds->id = priv->ts.streams[i].id;
ds->sh = sh;
ds_free_packs(ds);
More information about the MPlayer-cvslog
mailing list