adevice_lock = new Mutex("Record::adevice_lock");
vdevice_lock = new Mutex("Record::vdevice_lock");
batch_lock = new Mutex("Record::batch_lock");
+#ifdef HAVE_COMMERCIAL
skim_thread = new SkimDbThread();
cutads_status = new RecordCutAdsStatus(this);
blink_status = new RecordBlinkStatus(this);
+#endif
}
Record::~Record()
{
mwindow->gui->record = 0;
stop();
+#ifdef HAVE_COMMERCIAL
delete blink_status;
delete cutads_status;
stop_skimming();
delete skim_thread;
+#endif
delete deletions;
delete picture;
delete channeldb;
// Need to stop everything this time
- stop_commercial_capture(0);
int video_stream = -1;
+#ifdef HAVE_COMMERCIAL
+ stop_commercial_capture(0);
+#endif
+#ifdef HAVE_LIBZMPEG
if( default_asset->format == FILE_MPEG ) {
Channel *channel = get_current_channel();
if( channel )
video_stream = channel->video_stream;
}
+#endif
stop(0);
edl->Garbage::remove_user();
return result;
}
-
+#ifdef HAVE_COMMERCIAL
int Record::skimming(void *vp, int track)
{
return ((Record*)vp)->skimming(track);
stop_skimming();
}
+#else
+int Record::skimming(void *vp, int track) { return 1; }
+int Record::skimming(int track) { return 1; }
+void Record::start_skimming() {}
+void Record::stop_skimming() {}
+void Record::update_skimming(int v) {}
+#endif
+
RecordRemoteHandler::RecordRemoteHandler(RemoteControl *remote_control)
: RemoteHandler(remote_control->gui, GREEN)
{
break;
//case UP: case DOWN: case LEFT: case RIGHT:
//case KPPLAY: case KPBACK: case KPFORW:
+#ifdef HAVE_COMMERCIAL
case KPRECD: case 'c': // start capture, mark endpoint
if( !deletions ) {
start_commercial_capture();
case KPAUSE: case 'x': // ignore current commercial
mark_commercial_capture(DEL_SKIP);
break;
+#endif
case KPBACK: case 'a': // toggle mute audio
if( !monitor_audio ) { set_mute_gain(1); set_play_gain(1); }
set_audio_monitoring(monitor_audio ? 0 : 1);
case 'm': // toggle metering audio
set_audio_metering(metering_audio ? 0 : 1);
break;
+#ifdef HAVE_COMMERCIAL
case KPPLAY: case 's': // ignore previous endpoint
mark_commercial_capture(DEL_OOPS);
break;
+#endif
case KPFWRD: case KPSLASH:
display_channel_info();
break;
return 1;
}
-
+#ifdef HAVE_COMMERCIAL
int Record::start_commercial_capture()
{
if( deletions != 0 ) return 1;
deletions->append(new Dele(time, action));
return 0;
}
+#endif
void Record::remote_fill_color(int color)
{
if( adevice ) adevice->set_play_gain(gain);
}
+#ifdef HAVE_COMMERCIAL
int Record::stop_commercial_capture(int run_job)
{
if( deletions == 0 ) return 1;
remote_color(record->status_color);
}
+#endif