rework histogram_bezier, init wm icon set_icon(gg), update de.po+msg/txt
[goodguy/history.git] / cinelerra-5.1 / cinelerra / devicedvbinput.C
index 980b8a1edafebbc7189f05e3105ff4c63261a841..9829611a0870f40d2ea339fea44940b2289717d7 100644 (file)
@@ -7,23 +7,24 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
- * 
+ *
  * 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"
 #include <string.h>
 #include <errno.h>
 #include <fcntl.h>
-#ifdef HAVE_DVB
 #include <linux/dvb/dmx.h>
 #include <linux/dvb/frontend.h>
-#endif
 #include <sys/ioctl.h>
 
 
@@ -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