Re: Support for new versions of libdvb
Jean-Paul Saman <[email protected]> Thu, 04 Sep 2003 15:03:16 +0200
| Newsgroups | gmane.comp.video.videolan.vls.devel |
|---|---|
| Message-ID | <[email protected]> |
Alexis de Lattre wrote: > I tried VLS CVS with newer versions of libdvb : > > - libdvb 0.5.0 doesn't compile That is because there are a couple of small mistakes in the Makefile and one of the source files. Here is a patch that has the location to linuxtv-dvb-1.0.0 hardcoded in the Makefile. Adapt that to your favourite location and it ... compile .. ;-) > I use the linuxTV drivers version 1.0.0. > Me too. -- Kind greetings, Jean-Paul Saman
libdvb-0.5.0.patch
(text/plain, 1.2 KB)
diff -X ../ignore -urNps libdvb-0.5.0/config.mk libdvb-0.5.0-jps/config.mk
--- libdvb-0.5.0/config.mk 2003-08-29 16:26:19.000000000 +0200
+++ libdvb-0.5.0-jps/config.mk 2003-09-02 13:57:34.000000000 +0200
@@ -1,10 +1,11 @@
# -*- makefile -*-
#
-PREFIX = /usr/local
+PREFIX = /usr
VERSION = 0.5.0
CFLAGS=-O2 -Wall -g
-INCLUDES=-I. -I../include -I../../include
-TEST_PROGS= merge_dvb conv satscan cam_set cam_test quickscan cam_menu
+INCLUDES=-I. -I../include -I../../include -I/home/saman/src/videolan/linuxtv-dvb-1.0.0/include
+TEST_PROGS= merge_dvb conv satscan cam_set cam_test quickscan
+#cam_menu
#CXX = g++-3.2
#CC = gcc-3.2
diff -X ../ignore -urNps libdvb-0.5.0/libdvb/DVB.cc libdvb-0.5.0-jps/libdvb/DVB.cc
--- libdvb-0.5.0/libdvb/DVB.cc 2003-08-29 16:26:18.000000000 +0200
+++ libdvb-0.5.0-jps/libdvb/DVB.cc 2003-09-02 13:56:04.000000000 +0200
@@ -3144,7 +3144,7 @@ int chck_frontend (int fefd, frontend_st
pfd[0].fd = fefd;
pfd[0].events = POLLIN;
- event.status = (enum fe_status_t) 0;
+ event.status = (fe_status_t) 0;
while (((event.status & FE_TIMEDOUT)==0) && ((event.status & FE_HAS_LOCK)==0)) {
if (poll(pfd,1,10000)){
if (pfd[0].revents & POLLIN){