summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2012-06-08 11:52:56 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2012-06-08 11:52:56 +0300
commite7c16396d9e863b08bc1f8bf087b5297ff61a6b7 (patch)
treefc3d6df1e896a37e2989fc1a7f0de6bfaf83ba51 /src
parent230bccb2dcdaed84ce9820b13c4dc1f58eacb13a (diff)
downloadxine-lib-e7c16396d9e863b08bc1f8bf087b5297ff61a6b7.tar.gz
xine-lib-e7c16396d9e863b08bc1f8bf087b5297ff61a6b7.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mng.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/demuxers/demux_mng.c b/src/demuxers/demux_mng.c
index bf4dfec4e..d54996982 100644
--- a/src/demuxers/demux_mng.c
+++ b/src/demuxers/demux_mng.c
@@ -226,6 +226,9 @@ static void demux_mng_send_headers(demux_mng_t *this){
/* 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);