[Mplayer-dvb] NEWSTRUCT fix

Marcus Metzler mocm at metzlerbros.de
Tue Oct 1 11:53:57 CEST 2002


Hi,
some people have problems using mplayer with the NEWSTRUCT
drivers. With the following minimal changes you will get it to work:

1) If you don't have the /dev/ost devices link /dev/ost/video to 
   /dev/dvb/adapter0/video0 and /dev/ost/audio to
  /dev/dvb/adapter0/audio0, i.e.
   mkdir /dev/ost
   ln -s /dev/dvb/adapter0/video0 /dev/ost/video
   ln -s /dev/dvb/adapter0/audio0 /dev/ost/audio
   
2) Patch mplayer with the following


--- /usr3/src/MPlayer/main/libao2/ao_mpegpes.c  Mon Sep 30 15:24:39 2002
+++ /vol/morden/usr2/MPlayer/main/libao2/ao_mpegpes.c   Mon Sep 30 16:50:07 2002
@@ -15,7 +15,7 @@
 #include "../mp_msg.h"
 
 #ifdef HAVE_DVB
-#include <ost/audio.h>
+#include <linux/dvb/audio.h>
 audioMixer_t dvb_mixer={255,255};
 extern int vo_mpegpes_fd;
 extern int vo_mpegpes_fd2;

--- /usr3/src/MPlayer/main/libvo/vo_mpegpes.c   Mon Sep 30 15:24:43 2002
+++ /vol/morden/usr2/MPlayer/main/libvo/vo_mpegpes.c    Mon Sep 30 16:52:15 2002
@@ -35,11 +35,8 @@
 #include <stdio.h>
 #include <time.h>
 
-#include <ost/dmx.h>
-#include <ost/frontend.h>
-#include <ost/sec.h>
-#include <ost/video.h>
-#include <ost/audio.h>
+#include <linux/dvb/video.h>
+#include <linux/dvb/audio.h>
 
 #endif

3) use mplayer's configure with the option 
   --with-extraincdir=MYPATH/DVB/include

Marcus

-- 
/--------------------------------------------------------------------\
| Dr. Marcus O.C. Metzler        |                                   |
|--------------------------------|-----------------------------------|
| mocm at metzlerbros.de            | http://www.metzlerbros.de/        |
\--------------------------------------------------------------------/




More information about the MPlayer-dvb mailing list