Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / vdevicedvb.C
blobbe4a1738358c61336025c0f8c0c3c41082494b8d
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_GC asset)
61         asset->format = FILE_MPEG;
62 // This file writer should ignore codec fields.
69 //      Local Variables:
70 //      mode: C++
71 //      c-file-style: "linux"
72 //      End: