summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-03-20 22:20:18 +0000
committerphintuka <phintuka>2010-03-20 22:20:18 +0000
commitc68e08fe6a949fcf783a4ec7c5389b20572734b6 (patch)
tree6042f454684e662f26b2cc73b6a19fb7674b962b
parentbf42711c517331a72e57ffc198ba0d63b1638563 (diff)
downloadxineliboutput-c68e08fe6a949fcf783a4ec7c5389b20572734b6.tar.gz
xineliboutput-c68e08fe6a949fcf783a4ec7c5389b20572734b6.tar.bz2
removed pes_start (duplicate ; use pusi instead)
-rw-r--r--xine/ts2es.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/xine/ts2es.c b/xine/ts2es.c
index 736dd105..adae90d2 100644
--- a/xine/ts2es.c
+++ b/xine/ts2es.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: ts2es.c,v 1.8 2010-02-16 12:40:16 phintuka Exp $
+ * $Id: ts2es.c,v 1.9 2010-03-20 22:20:18 phintuka Exp $
*
*/
@@ -28,7 +28,6 @@ struct ts2es_s {
uint32_t xine_buf_type;
buf_element_t *buf;
- int pes_start;
int first_pusi_seen;
int video;
int pes_error;
@@ -158,7 +157,7 @@ buf_element_t *ts2es_put(ts2es_t *this, uint8_t *data, fifo_buffer_t *src_fifo)
/* handle new payload unit */
if (pusi) {
this->first_pusi_seen = 1;
- this->pes_start = 1;
+
if (this->buf) {
this->buf->decoder_flags |= BUF_FLAG_FRAME_END;
@@ -196,9 +195,7 @@ buf_element_t *ts2es_put(ts2es_t *this, uint8_t *data, fifo_buffer_t *src_fifo)
this->buf->size += bytes;
/* parse PES header */
- if (this->pes_start) {
- this->pes_start = 0;
-
+ if (pusi) {
ts2es_parse_pes(this);
}