[MPlayer-dev-eng] [PATCH] make CantOpenDVD message slightly more useful

Jan Knutar jknutar at nic.fi
Fri Nov 16 20:17:24 CET 2007


Through crudely and blindly inserting a strerror(), the user 
experience(TM) has improved:

before:

Playing dvd://.
Couldn't open DVD device: /dev/dvd
No stream found to handle url dvd://

After:

Playing dvd://.
Couldn't open DVD device: /dev/dvd (No medium found)
No stream found to handle url dvd://

After:

Playing dvd://.
Couldn't open DVD device: /dev/urandom (Wrong medium type)
No stream found to handle url dvd://

After:

Playing dvd://.
Couldn't open DVD device: /dev/sanity (No such file or directory)
No stream found to handle url dvd://


Not actually tested with stream_dvdnav.c
Helpfiles brutally modified.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd-cantopen.patch
Type: text/x-diff
Size: 19572 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071116/4077714e/attachment.patch>


More information about the MPlayer-dev-eng mailing list