[vlc-commits] chromecast: only show perfs dialog when transcoding video

Thomas Guillem git at videolan.org
Thu Feb 1 11:26:17 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 29 13:22:51 2018 +0100| [2eee9b4e9880e30450440c237ebbc01d22908821] | committer: Thomas Guillem

chromecast: only show perfs dialog when transcoding video

(cherry picked from commit 107f5e01e6c85c72fc8de0f5551b68897a32b089)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2eee9b4e9880e30450440c237ebbc01d22908821
---

 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,



More information about the vlc-commits mailing list