demux:ts: flush buffers at EOF. Allows decoding of last video frame.
authorPetri Hintukainen <phintuka@users.sourceforge.net>
Wed, 14 Dec 2011 10:49:52 +0200
changeset 1026945e913c84a94
parent 10268 5997b18a17c8
child 10270 79634dab4973
demux:ts: flush buffers at EOF. Allows decoding of last video frame.
src/demuxers/demux_ts.c
     1.1 --- a/src/demuxers/demux_ts.c	Wed Dec 14 10:39:54 2011 +0200
     1.2 +++ b/src/demuxers/demux_ts.c	Wed Dec 14 10:49:52 2011 +0200
     1.3 @@ -1995,6 +1995,7 @@
     1.4         */
     1.5  
     1.6        if (this->npkt_read == 0) {
     1.7 +        demux_ts_flush(this);
     1.8  	xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, "demux_ts: read 0 packets\n");
     1.9  	this->status = DEMUX_FINISHED;
    1.10  	return NULL;