plugins/vcd/input_vcd.c suggestion

Steven M. Schultz sms at 2BSD.COM
Wed Mar 20 02:08:27 CET 2002


Greetings -

	On some systems (often BSD derived systems but others perhaps also)
	it is common practice to use the "raw" (character) device instead
	of the 'cooked' (block) device when playing VCD/SVCD/DVDs

	It took me a while to puzzle out why "/dev/cdrom" was not acceptable
	to 'vlc' (somedays I am a slow learner ;)).  My problem was that
	/dev/cdrom was a symlink to '/dev/rsr1c' rather than '/dev/sr1c'.

	The small patch below permits either /dev/sr1c or /dev/rsr1c to
	be used on a BSD/OS system (and perhaps others that use the 'char'
	and 'block' forms of device nodes):

--- plugins/vcd/input_vcd.c.dist        Tue Mar 19 16:04:26 2002
+++ plugins/vcd/input_vcd.c     Tue Mar 19 16:58:19 2002
@@ -176,7 +176,7 @@
         return( -1 );
     }
     
-    if( !S_ISBLK(stat_info.st_mode) )
+    if( !S_ISBLK(stat_info.st_mode) && !S_ISCHR(stat_info.st_mode))
     {
         intf_WarnMsg( 3, "input : VCD plugin discarded"
                          " (not a valid drive)" );

	Cheers,
	Steven Schultz
	sms at 2bsd.com

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list