3 --- cinelerra/vdevicebuz.C.orig 2010-02-01 08:26:23.000000000 +0000
4 +++ cinelerra/vdevicebuz.C
6 #undef _LARGEFILE64_SOURCE
7 #undef _FILE_OFFSET_BITS
12 #include "bcsignals.h"
18 +#if defined(HAVE_LINUX_VIDEODEV_H)
19 #include <linux/kernel.h>
20 //#include <linux/videodev2.h>
21 #include <linux/videodev.h>
24 #include <sys/ioctl.h>
26 @@ -107,6 +111,7 @@ void VDeviceBUZInput::start()
30 +#if defined(HAVE_LINUX_VIDEODEV_H)
31 void VDeviceBUZInput::run()
33 struct buz_sync bsync;
34 @@ -117,7 +122,7 @@ void VDeviceBUZInput::run()
35 Thread::enable_cancel();
36 if(ioctl(device->jvideo_fd, BUZIOC_SYNC, &bsync) < 0)
38 - perror("VDeviceBUZInput::run BUZIOC_SYNC");
39 + fprintf(stderr, "VDeviceBUZInput::run BUZIOC_SYNC\n");
41 Thread::disable_cancel();
43 @@ -152,6 +157,11 @@ void VDeviceBUZInput::run()
48 +void VDeviceBUZInput::run() {
49 + fprintf(stderr, "VDeviceBUZInput::run (Warning: unavailable for this platform)\n");
53 void VDeviceBUZInput::get_buffer(char **ptr, int *size)
55 @@ -444,6 +454,7 @@ int VDeviceBUZ::set_picture(PictureConfi
59 +#if defined(HAVE_LINUX_VIDEODEV_H)
60 int VDeviceBUZ::get_norm(int norm)
63 @@ -453,6 +464,11 @@ int VDeviceBUZ::get_norm(int norm)
64 case SECAM: return VIDEO_MODE_SECAM; break;
68 +int VDeviceBUZ::get_norm(int norm) {
73 int VDeviceBUZ::read_buffer(VFrame *frame)
75 @@ -500,6 +516,7 @@ int VDeviceBUZ::read_buffer(VFrame *fram
79 +#if defined(HAVE_LINUX_VIDEODEV_H)
80 int VDeviceBUZ::open_input_core(Channel *channel)
82 jvideo_fd = open(device->in_config->buz_in_device, O_RDONLY);
83 @@ -621,7 +638,15 @@ int VDeviceBUZ::open_input_core(Channel
84 //printf("VDeviceBUZ::open_input_core 2\n");
88 +int VDeviceBUZ::open_input_core(Channel *channel) {
89 + fprintf(stderr, "VDeviceBUZ::open_input (Warning: unavailable feature on this platform)\n");
95 +#if defined(HAVE_LINUX_VIDEODEV_H)
96 int VDeviceBUZ::open_output_core(Channel *channel)
98 //printf("VDeviceBUZ::open_output 1\n");
99 @@ -677,9 +702,15 @@ int VDeviceBUZ::open_output_core(Channel
100 //printf("VDeviceBUZ::open_output 2\n");
104 +int VDeviceBUZ::open_output_core(Channel *channel) {
105 + fprintf(stderr, "VDeviceBUZ::open_output (Warning: unavailable feature on this platform)\n");
113 +#if defined(HAVE_LINUX_VIDEODEV_H)
114 int VDeviceBUZ::write_buffer(VFrame *frame, EDL *edl)
116 //printf("VDeviceBUZ::write_buffer 1\n");
117 @@ -753,6 +784,12 @@ int VDeviceBUZ::write_buffer(VFrame *fra
122 +int VDeviceBUZ::write_buffer(VFrame *frame, EDL *edl) {
123 + fprintf(stderr, "VDeviceBUZ::write_buffer (Warning: unavailable feature on this platform)\n");
128 void VDeviceBUZ::new_output_buffer(VFrame *output,