[prev in list] [next in list] [prev in thread] [next in thread]
List: xine-cvslog
Subject: [xine-cvs] HG: xine-lib: Add some missing BUF_FLAG_PREVIEW in
From: Reinhard Nißl <rnissl () gmx ! de>
Date: 2009-06-21 20:45:19
Message-ID: 97865266f32fd4c002fa.1244724247 () hg ! debian ! org
[Download RAW message or body]
# HG changeset patch
# User Reinhard Nißl <rnissl@gmx.de>
# Date 1244724247 -7200
# Node ID 97865266f32fd4c002fa8a3ac780c73518596bb1
# Parent 575bbf0a2d486dec2e89c1de3dd588395d252dae
Add some missing BUF_FLAG_PREVIEW in preview_mode.
diff --git a/src/demuxers/demux_mpeg_pes.c b/src/demuxers/demux_mpeg_pes.c
--- a/src/demuxers/demux_mpeg_pes.c
+++ b/src/demuxers/demux_mpeg_pes.c
@@ -1173,7 +1173,7 @@
b->size = 0;
b->pts = 0;
b->type = buf_type;
- b->decoder_flags = BUF_FLAG_FRAME_END;
+ b->decoder_flags = BUF_FLAG_FRAME_END | (this->preview_mode ? \
BUF_FLAG_PREVIEW : 0); this->video_fifo->put (this->video_fifo, b);
}
}
@@ -1187,7 +1187,7 @@
if (this->mpeg12_h264_detected & 1) {
uint8_t *t = buf->content + buf->size;
if (buf->size >=4 && t[-1] == 10 && t[-2] == 0x01 && t[-3] == 0x00 && t[-4] == \
0x00) /* end of sequence */
- buf->decoder_flags = BUF_FLAG_FRAME_END;
+ buf->decoder_flags = BUF_FLAG_FRAME_END | (this->preview_mode ? \
BUF_FLAG_PREVIEW : 0); }
} else {
buf->size = buf->max_size - result;
@@ -1225,7 +1225,7 @@
if ((this->mpeg12_h264_detected & 1) && todo_length <= 0) {
uint8_t *t = buf->content + buf->size;
if (buf->size >= 4 && t[-1] == 10 && t[-2] == 0x01 && t[-3] == 0x00 && t[-4] \
== 0x00) /* end of sequence */
- buf->decoder_flags = BUF_FLAG_FRAME_END;
+ buf->decoder_flags = BUF_FLAG_FRAME_END | (this->preview_mode ? \
BUF_FLAG_PREVIEW : 0); }
this->video_fifo->put (this->video_fifo, buf);
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic