diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-07-14 22:27:24 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-07-14 22:27:24 +0000 |
commit | 775c694abe5e84d66e448864c0281bf569bf509c (patch) | |
tree | 8829d985ba94742b6877b3cf375aef3257c361da /src/demuxers/demux_mpeg.c | |
parent | 43926fa28a72a0593f97b9e5718172ce26f27612 (diff) | |
download | xine-lib-775c694abe5e84d66e448864c0281bf569bf509c.tar.gz xine-lib-775c694abe5e84d66e448864c0281bf569bf509c.tar.bz2 |
make demuxers a bit more "programmer friendly"
CVS patchset: 2265
CVS date: 2002/07/14 22:27:24
Diffstat (limited to 'src/demuxers/demux_mpeg.c')
-rw-r--r-- | src/demuxers/demux_mpeg.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index 19de5a44d..96b96b789 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_mpeg.c,v 1.66 2002/07/05 17:31:59 mroi Exp $ + * $Id: demux_mpeg.c,v 1.67 2002/07/14 22:27:25 miguelfreitas Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -199,8 +199,6 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr) if (this->preview_mode) buf->decoder_flags = BUF_FLAG_PREVIEW; - else - buf->decoder_flags = 0; buf->input_pos = this->input->get_current_pos (this->input); @@ -251,8 +249,7 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr) if (this->preview_mode) buf->decoder_flags = BUF_FLAG_PREVIEW; - else - buf->decoder_flags = 0; + buf->input_pos = this->input->get_current_pos(this->input); if(this->audio_fifo) @@ -297,8 +294,7 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr) if (this->preview_mode) buf->decoder_flags = BUF_FLAG_PREVIEW; - else - buf->decoder_flags = 0; + buf->input_pos = this->input->get_current_pos(this->input); this->video_fifo->put (this->video_fifo, buf); @@ -410,8 +406,7 @@ static void parse_mpeg1_packet (demux_mpeg_t *this, int stream_id, int64_t scr) if (this->preview_mode) buf->decoder_flags = BUF_FLAG_PREVIEW; - else - buf->decoder_flags = 0; + buf->input_pos = this->input->get_current_pos(this->input); if (this->rate) buf->input_time = buf->input_pos / (this->rate * 50); @@ -433,8 +428,7 @@ static void parse_mpeg1_packet (demux_mpeg_t *this, int stream_id, int64_t scr) if (this->preview_mode) buf->decoder_flags = BUF_FLAG_PREVIEW; - else - buf->decoder_flags = 0; + buf->input_pos = this->input->get_current_pos(this->input); if (this->rate) buf->input_time = buf->input_pos / (this->rate * 50); |