From 4b91fa7eb32d3337e0ac6dc3fc6b210ca480b7b9 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 4 Jan 2003 14:48:11 +0000 Subject: add 2 demuxer groups (audio and games) with multiple plugins at the same shared library (reduce loading time). demuxer api increased so old ungrouped plugins won't be loaded. Bill Fink patch to enable playback of live rawdv streams. obs: non-regular files are now supposed non-seekable. CVS patchset: 3771 CVS date: 2003/01/04 14:48:11 --- src/input/input_file.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/input_file.c b/src/input/input_file.c index 42702855e..372e864a8 100644 --- a/src/input/input_file.c +++ b/src/input/input_file.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: input_file.c,v 1.72 2002/12/29 16:48:34 mroi Exp $ + * $Id: input_file.c,v 1.73 2003/01/04 14:48:12 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -71,7 +71,20 @@ typedef struct { static uint32_t file_plugin_get_capabilities (input_plugin_t *this_gen) { - return INPUT_CAP_SEEKABLE; + struct stat buf ; + file_input_plugin_t *this = (file_input_plugin_t *) this_gen; + + if (this->fh <0) + return 0; + + if (fstat (this->fh, &buf) == 0) { + if (S_ISREG(buf.st_mode)) + return INPUT_CAP_SEEKABLE; + else + return 0; + } else + perror ("system call fstat"); + return 0; } -- cgit v1.2.3