summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTorsten Jager <t.jager@gmx.de>2011-10-18 11:19:32 +0300
committerTorsten Jager <t.jager@gmx.de>2011-10-18 11:19:32 +0300
commit5c160b93ade6a07e3bcc084f4552dcd1eb70b5b4 (patch)
tree300803dd50bbe7a14354c6651c7a282b25388080 /src
parent5ae44fd6e69481c8b2779857a7231cf1c5dc74a5 (diff)
downloadxine-lib-5c160b93ade6a07e3bcc084f4552dcd1eb70b5b4.tar.gz
xine-lib-5c160b93ade6a07e3bcc084f4552dcd1eb70b5b4.tar.bz2
net_buf_ctrl: dvb sync: dont rely on demuxer sending BUF_FLAG_FRAME_START
(eg for streams that send PES payloads not aligned to frame boundaries).
Diffstat (limited to 'src')
-rw-r--r--src/input/net_buf_ctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c
index d06d8133f..d187b5c2b 100644
--- a/src/input/net_buf_ctrl.c
+++ b/src/input/net_buf_ctrl.c
@@ -203,7 +203,7 @@ static void dvbspeed_put (nbc_t *this, fifo_buffer_t * fifo, buf_element_t *b) {
name = "audio";
} else return;
/* update fifo fill time */
- if (b->pts && (b->decoder_flags & BUF_FLAG_FRAME_START)) {
+ if (b->pts) {
if (*last) {
diff = b->pts - *last;
if ((diff > -220000) && (diff < 220000)) *fill += diff;
@@ -279,7 +279,7 @@ static void dvbspeed_get (nbc_t *this, fifo_buffer_t * fifo, buf_element_t *b) {
name = "audio";
} else return;
/* update fifo fill time */
- if (b->pts && (b->decoder_flags & BUF_FLAG_FRAME_START)) {
+ if (b->pts) {
if (*last) {
diff = b->pts - *last;
if ((diff > -220000) && (diff < 220000)) *fill -= diff;