From af6491f4959e4a289f0e11fb2c79f3d7ab635601 Mon Sep 17 00:00:00 2001 From: Rocky Bernstein Date: Thu, 25 Sep 2003 02:57:51 +0000 Subject: Correct/add comment about xine_demux_flush_engine. CVS patchset: 5412 CVS date: 2003/09/25 02:57:51 --- src/xine-engine/demux.c | 6 +++++- src/xine-engine/xine_internal.h | 12 +++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c index 33477cc0f..47d8aed14 100644 --- a/src/xine-engine/demux.c +++ b/src/xine-engine/demux.c @@ -49,7 +49,11 @@ #define LOG */ -/* internal use only - called from demuxers on seek/stop +/* + * Flush audio and video buffers. It is called from demuxers on + * seek/stop, and may be useful when user input changes a stream and + * xine-lib has cached buffers that have yet to be played. + * * warning: after clearing decoders fifos an absolute discontinuity * indication must be sent. relative discontinuities are likely * to cause "jumps" on metronom. diff --git a/src/xine-engine/xine_internal.h b/src/xine-engine/xine_internal.h index c0c92b7a9..be98f00d2 100644 --- a/src/xine-engine/xine_internal.h +++ b/src/xine-engine/xine_internal.h @@ -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: xine_internal.h,v 1.139 2003/08/21 00:37:29 miguelfreitas Exp $ + * $Id: xine_internal.h,v 1.140 2003/09/25 02:57:51 rockyb Exp $ * */ @@ -309,7 +309,17 @@ void xine_get_current_info (xine_stream_t *stream, extra_info_t *extra_info, int /* demuxer helper functions from demux.c */ +/* + * Flush audio and video buffers. It is called from demuxers on + * seek/stop, and may be useful when user input changes a stream and + * xine-lib has cached buffers that have yet to be played. + * + * warning: after clearing decoders fifos an absolute discontinuity + * indication must be sent. relative discontinuities are likely + * to cause "jumps" on metronom. + */ void xine_demux_flush_engine (xine_stream_t *stream); + void xine_demux_control_nop (xine_stream_t *stream, uint32_t flags); void xine_demux_control_newpts (xine_stream_t *stream, int64_t pts, uint32_t flags); void xine_demux_control_headers_done (xine_stream_t *stream); -- cgit v1.2.3