Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: HEAD+mplayer+mplayer plugin+vdr 1.1.16



On 15 Nov 2002 Kovacs Balazs <basq@vendegvaro.hu> wrote:

> Yes, but I can't compile mplayer 0.90pre10 with this HEAD driver.

Use this patch with HEAD driver:

diff -ur /var/tmp/MPlayer-0.90pre8/libao2/ao_mpegpes.c MPlayer-0.90pre8/libao2/ao_mpegpes.c
--- /var/tmp/MPlayer-0.90pre8/libao2/ao_mpegpes.c	Fri Aug 30 15:34:08 2002
+++ MPlayer-0.90pre8/libao2/ao_mpegpes.c	Fri Nov 15 15:38:23 2002
@@ -14,8 +14,8 @@
 #include "../mp_msg.h"
 
 #ifdef HAVE_DVB
-#include <ost/audio.h>
-audioMixer_t dvb_mixer={255,255};
+#include <linux/dvb/audio.h>
+audio_mixer_t dvb_mixer={255,255};
 extern int vo_mpegpes_fd;
 extern int vo_mpegpes_fd2;
 #endif
diff -ur /var/tmp/MPlayer-0.90pre8/libvo/vo_mpegpes.c MPlayer-0.90pre8/libvo/vo_mpegpes.c
--- /var/tmp/MPlayer-0.90pre8/libvo/vo_mpegpes.c	Wed Aug 28 23:32:32 2002
+++ MPlayer-0.90pre8/libvo/vo_mpegpes.c	Fri Nov 15 15:41:17 2002
@@ -35,12 +35,16 @@
 #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/dmx.h>
+#include <linux/dvb/frontend.h>
+#include <linux/dvb/video.h>
+#include <linux/dvb/audio.h>
+#ifndef true
+#define true 1
+#endif
+#ifndef false
+#define false 0
+#endif
 #endif
 
 #include "config.h"
@@ -85,11 +89,11 @@
 static uint32_t preinit(const char *arg){
 #ifdef HAVE_DVB
     //|O_NONBLOCK
-	if((vo_mpegpes_fd = open("/dev/ost/video",O_RDWR)) < 0){
+	if((vo_mpegpes_fd = open("/dev/dvb/adapter0/video0",O_RDWR)) < 0){
 		perror("DVB VIDEO DEVICE: ");
 		return -1;
 	}
-	if((vo_mpegpes_fd2 = open("/dev/ost/audio",O_RDWR|O_NONBLOCK)) < 0){
+	if((vo_mpegpes_fd2 = open("/dev/dvb/adapter0/audio0",O_RDWR|O_NONBLOCK)) < 0){
 		perror("DVB AUDIO DEVICE: ");
 		return -1;
 	}


-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index