diff --git a/daemon/commands/video.cc b/daemon/commands/video.cc index 569e6c79c..a2f4f178d 100644 --- a/daemon/commands/video.cc +++ b/daemon/commands/video.cc @@ -6,19 +6,19 @@ Video::Video() : "Toggles camera on current call." "If no call is specified, the current call is taken.") { - addExample(new DaemonCommandExample("video on 1", + addExample(new DaemonCommandExample("video 1", "Status: Ok\n\n" "Camera activated.")); - addExample(new DaemonCommandExample("video off 1", + addExample(new DaemonCommandExample("video 1", "Status: Ok\n\n" "Camera deactivated.")); - addExample(new DaemonCommandExample("video on", + addExample(new DaemonCommandExample("video", "Status: Error\n\n" "Reason: No current call available.")); - addExample(new DaemonCommandExample("video on 2", + addExample(new DaemonCommandExample("video 2", "Status: Error\n\n" "Reason: No call with such id.")); } @@ -60,8 +60,8 @@ void Video::exec(Daemon* app, const char* args) return; } - app->sendResponse(Response(activate?"Camera deactivated.": - "Camera activated", Response::Ok)); + app->sendResponse(Response(activate?"Camera activated.": + "Camera deactivated", Response::Ok)); } diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 384e81b11..e933c0bd7 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -285,7 +285,7 @@ bool DaemonCommand::matches(const char *name) const { } Daemon::Daemon(const char *config_path, const char *factory_config_path, const char *log_file, const char *pipe_name, bool display_video, bool capture_video) : - mLSD(0), mLogFile(NULL), mCallIds(0), mProxyIds(0), mAudioStreamIds(0) { + mLSD(0), mLogFile(NULL), mAutoVideo(0), mCallIds(0), mProxyIds(0), mAudioStreamIds(0) { ms_mutex_init(&mMutex, NULL); mServerFd = -1; mChildFd = -1;