X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fdevicedvbinput.C;h=9829611a0870f40d2ea339fea44940b2289717d7;hb=7cec2a82e63b4cbd8ce58fd98bd66eb4e7f2e826;hp=980b8a1edafebbc7189f05e3105ff4c63261a841;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/devicedvbinput.C b/cinelerra-5.1/cinelerra/devicedvbinput.C index 980b8a1e..9829611a 100644 --- a/cinelerra-5.1/cinelerra/devicedvbinput.C +++ b/cinelerra-5.1/cinelerra/devicedvbinput.C @@ -7,23 +7,24 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ +#ifdef HAVE_DVB #include "chantables.h" #include "devicedvbinput.h" #include "devicempeginput.h" @@ -37,10 +38,8 @@ #include #include #include -#ifdef HAVE_DVB #include #include -#endif #include @@ -238,7 +237,7 @@ int DeviceDVBInput::dvb_open() ret = 1; } if( !ret && ioctl(frontend_fd, FE_GET_INFO, &fe_info) < 0 ) { - fprintf(stderr, + fprintf(stderr, "DeviceDVBInput::dvb_open FE_GET_INFO: %s\n", strerror(errno)); ret = 1; @@ -278,7 +277,7 @@ int DeviceDVBInput::dvb_open() } if( !ret && ioctl(frontend_fd, FE_SET_FRONTEND, &frontend_param) < 0 ) { - fprintf(stderr, + fprintf(stderr, "DeviceDVBInput::dvb_open FE_SET_FRONTEND frequency=%d: %s\n", frontend_param.frequency, strerror(errno)); ret = 1; @@ -292,7 +291,7 @@ int DeviceDVBInput::dvb_open() } if( !ret && ioctl(frontend_fd, FE_GET_FRONTEND, &frontend_param) ) { - fprintf(stderr, + fprintf(stderr, "DeviceDVBInput::dvb_open FE_GET_FRONTEND: %s\n", strerror(errno)); ret = 1; @@ -338,7 +337,7 @@ int DeviceDVBInput::dvb_open() pesfilter.pes_type = DMX_PES_OTHER; pesfilter.flags = DMX_IMMEDIATE_START; if( ioctl(demux_fd, DMX_SET_PES_FILTER, &pesfilter) < 0 ) { - fprintf(stderr, + fprintf(stderr, "DeviceDVBInput::dvb_open DMX_SET_PES_FILTER for raw: %s\n", strerror(errno)); ret = 1; @@ -430,7 +429,7 @@ int DeviceDVBInput::open_dev(int color_model) { ret = dvb_open(); if( ret ) { - printf("DeviceDVBInput::open_dev: adaptor %s open failed\n", + printf("DeviceDVBInput::open_dev: adaptor %s open failed\n", dev_name); } } @@ -469,3 +468,4 @@ void DeviceDVBInput::set_signal_status(SignalStatus *stat) dvb_lock->unlock(); } +#endif