diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index bea0fff1b..10ebab2d0 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -1187,6 +1187,8 @@ static PayloadType* find_payload_type_from_list(const char* type, int rate, int static bool_t linphone_core_codec_supported(LinphoneCore *lc, SalStreamType type, const char *mime){ if (type == SalVideo && lp_config_get_int(lc->config, "video", "rtp_io", FALSE)){ return TRUE; /*in rtp io mode, we don't transcode video, thus we can support a format for which we have no encoder nor decoder.*/ + if (type == SalAudio && lp_config_get_int(lc->config, "sound", "rtp_io", FALSE)){ + return TRUE; /*in rtp io mode, we don't transcode video, thus we can support a format for which we have no encoder nor decoder.*/ } else if (type == SalText) { return TRUE; } diff --git a/daemon/commands/video.cc b/daemon/commands/video.cc index 78d5d50fd..46c2c125f 100644 --- a/daemon/commands/video.cc +++ b/daemon/commands/video.cc @@ -159,8 +159,11 @@ AutoVideo::AutoVideo(): void AutoVideo::exec(Daemon* app, const char* args) { - bool enable = (strcmp(args,"on") == 0); + LinphoneCore *lc = app->getCore(); + LinphoneVideoPolicy vpol = {TRUE, TRUE}; + bool enable = (strcmp(args,"on") == 0); + linphone_core_set_video_policy(lc, &vpol); app->setAutoVideo(enable); app->sendResponse(Response(enable?"Auto video ON": "Auto video OFF", Response::Ok)); diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 4d86cca35..808177481 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -925,6 +925,9 @@ int main(int argc, char *argv[]) { } else if (strcmp(argv[i], "--enable-lsd") == 0) { lsd_enabled = true; } + else{ + fprintf(stderr, "Unrecognized option : %s", argv[i]); + } } Daemon app(config_path, factory_config_path, log_file, pipe_name, display_video, capture_video); app.enableStatsEvents(stats_enabled);