From: Petri H. <phi...@us...> - 2012-06-08 08:55:12
|
# HG changeset patch # User Petri Hintukainen <phi...@us...> # Date 1339145576 -10800 # Node ID e9b8b0ab8e4524e7de41b3a91b58e382d87294fd # Branch default # Parent 146e325cb3bfc960f9b7b677695563da6cfe30b5 mng: fixed loop play of short streams. discontinuity is not detected with short streams. _x_demux_control_start() is not enough; BUF_CONTROL_START in decoders skips discontinuity indication when gapless switch is in use. diff --git a/src/demuxers/demux_mng.c b/src/demuxers/demux_mng.c --- a/src/demuxers/demux_mng.c +++ b/src/demuxers/demux_mng.c @@ -226,6 +226,9 @@ /* send start buffers */ _x_demux_control_start(this->stream); + /* required when loop playing short streams (gapless switch) */ + _x_demux_control_newpts(this->stream, 0, 0); + /* send init info to decoder */ this->bih.biBitCount = 24; buf = this->video_fifo->buffer_pool_alloc(this->video_fifo); |