r1026: Videoscope layout tweaks.
[cinelerra_cv/ct.git] / cinelerra / vdevicedvb.C
blob0ec42761ec92312d5695b6c71b7696abba48c1dd
1 #include "asset.h"
2 #include "devicedvbinput.inc"
3 #include "file.inc"
4 #include "mwindow.h"
5 #include "vdevicedvb.h"
6 #include "videodevice.h"
7 #include "devicedvbinput.h"
10 #include <unistd.h>
12 VDeviceDVB::VDeviceDVB(VideoDevice *device)
13  : VDeviceBase(device)
15         initialize();
18 VDeviceDVB::~VDeviceDVB()
20         close_all();
24 int VDeviceDVB::initialize()
26         input_thread = 0;
27         return 0;
30 int VDeviceDVB::open_input()
32         if(!input_thread)
33         {
34                 input_thread = DeviceDVBInput::get_input_thread(device->mwindow);
35         }
36 sleep(100);
38         if(input_thread)
39                 return 0;
40         else
41                 return 0;
44 int VDeviceDVB::close_all()
46         if(input_thread)
47         {
48                 DeviceDVBInput::put_input_thread(device->mwindow);
49         }
50         input_thread = 0;
51         return 0;
54 int VDeviceDVB::read_buffer(VFrame *frame)
56         return 0;
59 void VDeviceDVB::fix_asset(Asset *asset)
61         asset->format = FILE_MPEG;
62 // This file writer should ignore codec fields.