X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fdevicempeginput.C;h=93a71e8bbebedff1c7b07d19bf5dd562d45f1752;hb=edb7995d395b7fe861bf79b002fac2f19b141f49;hp=168244b0c875fe485cc44cedcfeb20c3d427d53f;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/devicempeginput.C b/cinelerra-5.1/cinelerra/devicempeginput.C index 168244b0..93a71e8b 100644 --- a/cinelerra-5.1/cinelerra/devicempeginput.C +++ b/cinelerra-5.1/cinelerra/devicempeginput.C @@ -48,8 +48,9 @@ #include #include #include +#ifdef HAVE_VIDEO4LINUX2 #include - +#endif Condition DeviceMPEGInput::in_mpeg_lock(1,"DeviceMPEGInput::in_mpeg_lock"); DeviceMPEGList DeviceMPEGInput::in_mpeg; @@ -484,35 +485,51 @@ int DeviceMPEGInput::stop_record() int DeviceMPEGInput::subchannel_count() { +#ifdef HAVE_DVB return src ? src->dvb.channel_count() : 0; +#else + return 0; +#endif } int DeviceMPEGInput::subchannel_definition(int subchan, char *name, int &major, int &minor, int &total_astreams, int &total_vstreams) { +#ifdef HAVE_DVB int result = src != 0 ? 0 : -1; if( !result ) result = src->dvb.get_channel(subchan, major, minor); if( !result ) result = src->dvb.get_station_id(subchan, &name[0]); if( !result ) result = src->dvb.total_astreams(subchan, total_astreams); if( !result ) result = src->dvb.total_vstreams(subchan, total_vstreams); return result; +#else + return -1; +#endif } int DeviceMPEGInput::subchannel_video_stream(int subchan, int vstream) { +#ifdef HAVE_DVB int result = src != 0 ? 0 : -1; if( !result && src->dvb.vstream_number(subchan, vstream, result) ) result = -1; return result; +#else + return -1; +#endif } int DeviceMPEGInput::subchannel_audio_stream(int subchan, int astream, char *enc) { +#ifdef HAVE_DVB int result = src != 0 ? 0 : -1; if( src && src->dvb.astream_number(subchan, astream, result, enc) ) { enc[0] = 0; result = -1; } return result; +#else + return -1; +#endif } int DeviceMPEGInput::get_video_pid(int track)