diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 20:21:35 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-11 20:21:35 +0100 |
commit | 6520f339cb5fe4f2d07e64bec612c33dc1c91acf (patch) | |
tree | 450b60fd265fdf0d856f327be08fece511a35ba4 | |
parent | 47e34b5c2e7649f647597c9551d241de1a1df23c (diff) | |
download | xine-lib-6520f339cb5fe4f2d07e64bec612c33dc1c91acf.tar.gz xine-lib-6520f339cb5fe4f2d07e64bec612c33dc1c91acf.tar.bz2 |
Fail opening the device while using BY_CONTENT detection method, only allow BY_MRL and EXPLITIC.
Also report cdda:/ as extension so that the global BY_MRL check will check for that.
-rw-r--r-- | src/demuxers/demux_cdda.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/demuxers/demux_cdda.c b/src/demuxers/demux_cdda.c index 3a6c7cba7..d2a2b4db4 100644 --- a/src/demuxers/demux_cdda.c +++ b/src/demuxers/demux_cdda.c @@ -200,14 +200,8 @@ static demux_plugin_t *open_plugin (demux_class_t *class_gen, xine_stream_t *str switch (stream->content_detection_method) { case METHOD_BY_CONTENT: + return NULL; case METHOD_BY_MRL: - if (strncasecmp (input->get_mrl (input), "cdda:", 5)) { - free (this); - return NULL; - } - - break; - case METHOD_EXPLICIT: break; @@ -228,7 +222,7 @@ void *demux_cdda_init_plugin (xine_t *xine, void *data) { this->demux_class.description = N_("CD Digital Audio demux plugin"); this->demux_class.identifier = "CDDA"; this->demux_class.mimetypes = NULL; - this->demux_class.extensions = NULL; + this->demux_class.extensions = "cdda:/"; this->demux_class.dispose = default_demux_class_dispose; return this; |