summaryrefslogtreecommitdiffstats
path: root/libmpdvdkit2/dvd_reader.c
diff options
context:
space:
mode:
authornexus <nexus@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-17 20:53:20 +0000
committernexus <nexus@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-17 20:53:20 +0000
commit13fc540eb24f7e112376dc4a17bbd8fef96513c2 (patch)
treee2b8e847111d3b617d31958120321683329a1888 /libmpdvdkit2/dvd_reader.c
parent9abcd41e7073ce27f1f32a19663a8557f7e8805d (diff)
downloadmpv-13fc540eb24f7e112376dc4a17bbd8fef96513c2.tar.bz2
mpv-13fc540eb24f7e112376dc4a17bbd8fef96513c2.tar.xz
add FreeBSD default cd/dvd devices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16511 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdvdkit2/dvd_reader.c')
-rw-r--r--libmpdvdkit2/dvd_reader.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpdvdkit2/dvd_reader.c b/libmpdvdkit2/dvd_reader.c
index 4e5db5cc15..0073f6237b 100644
--- a/libmpdvdkit2/dvd_reader.c
+++ b/libmpdvdkit2/dvd_reader.c
@@ -301,6 +301,11 @@ static char *sun_block2char( const char *path )
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;
@@ -315,6 +320,7 @@ static char *bsd_block2char( const char *path )
return new_path;
}
+#endif /* __FreeBSD__ */
#endif
dvd_reader_t *DVDOpen( const char *path )