demux: error out if given invalid -demuxer option
commit7b076f79a9ecec1ebd380cc753fb41e00d95483a
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 10 Nov 2010 07:49:39 +0000 (10 09:49 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Wed, 10 Nov 2010 07:49:39 +0000 (10 09:49 +0200)
tree7512f5460bf0c7406d3a68040fbfa12399773f5d
parent8fb91511b1e69a0121d33ab48974e0a4b8151858
demux: error out if given invalid -demuxer option

The code choosing the demuxer to use only printed an error if given an
unknown demuxer name, then continued with default demuxer selection.
Change it to abort instead. This feels like more sensible behavior.
Also there's no fallback to autodetection in the case where the
demuxer name is recognized but the demuxer fails to open the file
either.
libmpdemux/demuxer.c