changeset 29852:32d288088a0f

Move headers related to setting dvd speed to dvd_common. This makes -dvd-speed work again.
author reimar
date Wed, 11 Nov 2009 09:28:21 +0000
parents eaa7bfc52c2c
children 415169f556ed
files stream/stream_dvd.c stream/stream_dvd_common.c
diffstat 2 files changed, 19 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Wed Nov 11 09:09:08 2009 +0000
+++ b/stream/stream_dvd.c	Wed Nov 11 09:28:21 2009 +0000
@@ -5,25 +5,12 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <fcntl.h>
 #include <string.h>
 
 #include "config.h"
 #include "mp_msg.h"
 #include "help_mp.h"
 
-#ifdef __FreeBSD__
-#include <sys/cdrio.h>
-#endif
-
-#ifdef __linux__
-#include <linux/cdrom.h>
-#include <scsi/sg.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/ioctl.h>
-#endif
-
 #include <libgen.h>
 #include <errno.h>
 
@@ -39,7 +26,6 @@
 #include "stream_dvd.h"
 #include "stream_dvd_common.h"
 #include "libmpdemux/demuxer.h"
-#include "libavutil/intreadwrite.h"
 
 static char* dvd_device_current;
 int dvd_angle=1;
--- a/stream/stream_dvd_common.c	Wed Nov 11 09:09:08 2009 +0000
+++ b/stream/stream_dvd_common.c	Wed Nov 11 09:28:21 2009 +0000
@@ -1,7 +1,26 @@
 #include "config.h"
+#include <fcntl.h>
 #include <inttypes.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <string.h>
 #include <dvdread/ifo_types.h>
+#ifdef __FreeBSD__
+#include <sys/cdrio.h>
+#endif
+
+#ifdef __linux__
+#include <linux/cdrom.h>
+#include <scsi/sg.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#endif
+
+#include "mp_msg.h"
+#include "help_mp.h"
 #include "stream_dvd_common.h"
+#include "libavutil/intreadwrite.h"
 
 const char * const dvd_audio_stream_types[8] = { "ac3","unknown","mpeg1","mpeg2ext","lpcm","unknown","dts" };
 const char * const dvd_audio_stream_channels[6] = { "mono", "stereo", "unknown", "unknown", "5.1/6.1", "5.1" };