From 50bf9a402e5e86a13dc95c1464ba5f1d1255d71b Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Thu, 11 Apr 2002 22:27:11 +0000 Subject: Add an INPUT_CAP_PREVIEW mode. This tells the demuxers if the input plugin can handle preview testing. Most plugins which are seekable can handle it. The current exception to this is the xine-dvdnav plugin which is seekable but not previewable due to DVDs having still pictures which stall the preview testing. CVS patchset: 1710 CVS date: 2002/04/11 22:27:11 --- src/demuxers/demux_elem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demuxers/demux_elem.c') diff --git a/src/demuxers/demux_elem.c b/src/demuxers/demux_elem.c index 9a46a175b..f5fc4c625 100644 --- a/src/demuxers/demux_elem.c +++ b/src/demuxers/demux_elem.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_elem.c,v 1.37 2002/04/09 03:38:00 miguelfreitas Exp $ + * $Id: demux_elem.c,v 1.38 2002/04/11 22:27:11 jcdutton Exp $ * * demultiplexer for elementary mpeg streams * @@ -220,7 +220,7 @@ static void demux_mpeg_elem_start (demux_plugin_t *this_gen, this->audio_fifo->put (this->audio_fifo, buf); } - if((this->input->get_capabilities(this->input) & INPUT_CAP_SEEKABLE) != 0) { + if((this->input->get_capabilities(this->input) & INPUT_CAP_PREVIEW) != 0) { int num_buffers = NUM_PREVIEW_BUFFERS; this->input->seek (this->input, 0, SEEK_SET); -- cgit v1.2.3