Mailing List archive

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

[vdr] Re: vdr-1.1.15 & mp3-0.7.8 & MPlayer-0.90rc1 nothing on screen



On Thu, Dec 12, 2002 at 04:01:03PM +0100, Hans-Hermann Redenius wrote:

> >i try to use the mplayer plugin with vdr:
> >vdr-1.1.15 (with DVB from Nov  4)
> >mp3-0.7.8
> >MPlayer-0.90rc1 (with --enable-dvb)
> Patched with the head patch?

Patched by hand now ;) I haven't look close enough to configures output, dvb
includes were missing. With some patches from mplayer-dvb list now mplayer
works fine via the dvb card. Thanx to all assistants.

Diffs:

[stefanh@zaphod stefanh]# diff -u /tmp/MPlayer-0.90rc1/configure /usr/local/src/MPlayer-0.90rc1/configure                                
--- /tmp/MPlayer-0.90rc1/configure      2002-12-07 00:54:02.000000000 +0100
+++ /usr/local/src/MPlayer-0.90rc1/configure    2002-12-12
18:39:55.000000000 +0100
@@ -2687,7 +2687,7 @@
 echocheck "DVB"
 if test "$_dvb" != no ; then
   _dvb=no
-  test -c /dev/ost/video && _dvb=yes
+  test -c /dev/dvb/adapter0/video0 && _dvb=yes
 cat >$TMPC << EOF
 #include <sys/poll.h>
 #include <sys/ioctl.h>
@@ -2695,18 +2695,15 @@
 #include <time.h>
 #include <unistd.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>
 int main(void) {return 0;}
 EOF
     if cc_check ; then
         _dvb=yes
         echores "yes"
     else
-      for I in "-I/usr/src/DVB/ost/include" "$_inc_extra/ost/include" ; do
+      for I in "-I/usr/src/DVB/ost/include" "$_inc_extra/linux/dvb/include" ; do
         if cc_check "$I" ; then
           _dvb=yes
           _inc_dvb="$I"


[stefanh@zaphod stefanh]# diff -u /tmp/MPlayer-0.90rc1/libao2/ao_mpegpes.c /usr/local/src/MPlayer-0.90rc1/libao2/ao_mpegpes.c 
--- /tmp/MPlayer-0.90rc1/libao2/ao_mpegpes.c    2002-10-06 03:08:04.000000000 +0200
+++ /usr/local/src/MPlayer-0.90rc1/libao2/ao_mpegpes.c  2002-12-12 16:43:53.000000000 +0100
@@ -15,8 +15,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};
 #endif
 extern int vo_mpegpes_fd;
 extern int vo_mpegpes_fd2;

[stefanh@zaphod stefanh]# diff -u /tmp/MPlayer-0.90rc1/libvo/vo_mpegpes.c /usr/local/src/MPlayer-0.90rc1/libvo/vo_mpegpes.c
--- /tmp/MPlayer-0.90rc1/libvo/vo_mpegpes.c     2002-11-11 16:20:26.000000000 +0100
+++ /usr/local/src/MPlayer-0.90rc1/libvo/vo_mpegpes.c   2002-12-12 18:38:51.000000000 +0100
@@ -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
 
@@ -47,6 +44,10 @@
 #include "video_out.h"
 #include "video_out_internal.h"
 
+#define boolean int
+#define true 1
+#define false 0
+
 int vo_mpegpes_fd=-1;
 int vo_mpegpes_fd2=-1;
 
@@ -86,11 +87,11 @@
 #ifdef HAVE_DVB
     if(!arg){
     //|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;
        }


-- 
Und Tschüss.
Stefan

### Kilroy was here ###  4855  6:40pm  up 10 days


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



Home | Main Index | Thread Index