1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/multimedia/mplayer/files/patch-libmpdvdkit2-dvd_reader.c
Joe Marcus Clarke fca0ecf8d1 * Correct use of SDL, update lib dependency of SDL [1]
* Better DVD device handling for FreeBSD [2]

PR:		57475 [1]
		57545
Suggested by:	Thierry Thomas <thierry@pompo.net> [1]
Obtained from:	sf [2]
Submitted by:	maintainer
2003-10-03 17:31:05 +00:00

23 lines
550 B
C

--- libmpdvdkit2/dvd_reader.c.orig Sat Aug 9 16:12:35 2003
+++ libmpdvdkit2/dvd_reader.c Fri Oct 3 18:16:43 2003
@@ -239,6 +239,11 @@
Darwin /dev/rdisk0, it needs to be the raw device
BSD/OS /dev/sr0c (if not mounted) or /dev/rsr0c ('c' any letter will do) */
static char *bsd_block2char( const char *path )
+#if defined(__FreeBSD__)
+{
+ return (char *) strdup( path );
+}
+#else
{
char *new_path;
@@ -253,6 +258,7 @@
return new_path;
}
+#endif /* __FreeBSD__ */
#endif
dvd_reader_t *DVDOpen( const char *path )