[MPlayer-cvslog] r29894 - in trunk/stream: stream_dvd.c stream_dvd_common.c

reimar subversion at mplayerhq.hu
Wed Nov 11 10:28:21 CET 2009


Author: reimar
Date: Wed Nov 11 10:28:21 2009
New Revision: 29894

Log:
Move headers related to setting dvd speed to dvd_common.
This makes -dvd-speed work again.

Modified:
   trunk/stream/stream_dvd.c
   trunk/stream/stream_dvd_common.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	Wed Nov 11 10:09:08 2009	(r29893)
+++ trunk/stream/stream_dvd.c	Wed Nov 11 10:28:21 2009	(r29894)
@@ -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;

Modified: trunk/stream/stream_dvd_common.c
==============================================================================
--- trunk/stream/stream_dvd_common.c	Wed Nov 11 10:09:08 2009	(r29893)
+++ trunk/stream/stream_dvd_common.c	Wed Nov 11 10:28:21 2009	(r29894)
@@ -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" };


More information about the MPlayer-cvslog mailing list