[MPlayer-dev-eng] [PATCH] VideoCD playback fix for NetBSD
Sergey Svishchev
svs+mplayer at grep.ru
Thu Feb 27 22:24:31 CET 2003
G'day,
The code in libmpdemux/vcd_read_nbsd.h incorrectly (too strictly)
checks return values of ioctl(SCIOCCOMMAND,...). As a result,
certain valid and error-free discs aren't played by MPlayer (а MODE
SENSE in sc.retsts was treated as fatal error, thus video stream
sequence header was never found, resulting in audio-only playback.)
--
Sergey Svishchev
-------------- next part --------------
Index: libmpdemux/vcd_read_nbsd.h
===================================================================
RCS file: /cvsroot/mplayer/0_90/libmpdemux/vcd_read_nbsd.h,v
retrieving revision 1.3
diff -u -r1.3 vcd_read_nbsd.h
--- libmpdemux/vcd_read_nbsd.h 23 Dec 2002 00:40:15 -0000 1.3
+++ libmpdemux/vcd_read_nbsd.h 27 Feb 2003 21:22:09 -0000
@@ -154,7 +154,7 @@
perror("SCIOCCOMMAND");
return -1;
}
- if (sc.retsts || sc.error) {
+ if (sc.error) {
fprintf(stderr, "scsi command failed: status %d error %d\n", sc.retsts,
sc.error);
return -1;
More information about the MPlayer-dev-eng
mailing list