summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-01-23 15:10:55 +0000
committerMike Melanson <mike@multimedia.cx>2003-01-23 15:10:55 +0000
commit7c57ed7daa56aa892f16fc8364f9b9662613d41d (patch)
tree0a71d7cb24de1df813a34135868b51c411095128
parent5b0c26475df76dd28ca0dd43d6d7cb10d2a973a8 (diff)
downloadxine-lib-7c57ed7daa56aa892f16fc8364f9b9662613d41d.tar.gz
xine-lib-7c57ed7daa56aa892f16fc8364f9b9662613d41d.tar.bz2
non-seekable
CVS patchset: 3994 CVS date: 2003/01/23 15:10:55
-rw-r--r--src/demuxers/demux_ac3.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/demuxers/demux_ac3.c b/src/demuxers/demux_ac3.c
index bb033bfb3..285f0c8de 100644
--- a/src/demuxers/demux_ac3.c
+++ b/src/demuxers/demux_ac3.c
@@ -21,7 +21,7 @@
* This demuxer detects raw AC3 data in a file and shovels AC3 data
* directly to the AC3 decoder.
*
- * $Id: demux_ac3.c,v 1.1 2003/01/22 01:30:07 tmmm Exp $
+ * $Id: demux_ac3.c,v 1.2 2003/01/23 15:10:55 tmmm Exp $
*
*/
@@ -208,6 +208,11 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str
input_plugin_t *input = (input_plugin_t *) input_gen;
demux_ac3_t *this;
+ if (! (input->get_capabilities(input) & INPUT_CAP_SEEKABLE)) {
+ printf(_("demux_ac3.c: input not seekable, can not handle!\n"));
+ return NULL;
+ }
+
this = xine_xmalloc (sizeof (demux_ac3_t));
this->stream = stream;
this->input = input;
@@ -231,7 +236,6 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str
case METHOD_BY_CONTENT:
case METHOD_EXPLICIT:
-printf (" **** by content...\n");
if (!open_ac3_file(this)) {
free (this);
return NULL;
@@ -242,7 +246,6 @@ printf (" **** by content...\n");
case METHOD_BY_EXTENSION: {
char *ending, *mrl;
-printf (" **** by extension...\n");
mrl = input->get_mrl (input);
ending = strrchr(mrl, '.');