From 107f5e01e6c85c72fc8de0f5551b68897a32b089 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Mon, 29 Jan 2018 13:22:51 +0100 Subject: [PATCH] chromecast: only show perfs dialog when transcoding video --- modules/stream_out/chromecast/cast.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp index 3dcb0310e5..fd0b30bfe7 100644 --- a/modules/stream_out/chromecast/cast.cpp +++ b/modules/stream_out/chromecast/cast.cpp @@ -517,7 +517,8 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream ) std::stringstream ssout; if ( !canRemux ) { - if ( var_InheritInteger( p_stream, SOUT_CFG_PREFIX "show-perf-warning" ) ) + if ( i_codec_video == 0 && p_original_video + && var_InheritInteger( p_stream, SOUT_CFG_PREFIX "show-perf-warning" ) ) { int res = vlc_dialog_wait_question( p_stream, VLC_DIALOG_QUESTION_WARNING, -- 2.11.4.GIT