summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 19:23:11 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-11 19:23:11 +0100
commitc818bc04294ababd55f33c52ed4ac3f6e1b4ca3d (patch)
tree34cf6c8b55d5870651f846ebacdba3187db8c6b0 /src
parentef8cf26197068261acd3ff8dc37f664fe979d337 (diff)
downloadxine-lib-c818bc04294ababd55f33c52ed4ac3f6e1b4ca3d.tar.gz
xine-lib-c818bc04294ababd55f33c52ed4ac3f6e1b4ca3d.tar.bz2
Let _x_demux_check_extension() consider empty extensions string as an always-pass.
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/demux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c
index f33397256..379d552bf 100644
--- a/src/xine-engine/demux.c
+++ b/src/xine-engine/demux.c
@@ -449,6 +449,10 @@ int _x_demux_read_header( input_plugin_t *input, unsigned char *buffer, off_t si
int _x_demux_check_extension (const char *mrl, const char *extensions){
char *last_dot, *e, *ext_copy, *ext_work;
+ /* An empty extensions string means that the by-extension method can't
+ be used, so consider those cases as always passing. */
+ if ( extensions == NULL ) return 1;
+
ext_copy = strdup(extensions);
ext_work = ext_copy;