[vlc-commits] [Git][videolan/vlc][master] chromecast: Fix repeat warning dialog

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Apr 12 07:41:44 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
46b09b52 by Dave Nicolson at 2026-04-12T06:15:42+00:00
chromecast: Fix repeat warning dialog

This prevents the "Performance warning" dialog appearing twice when the cancel button is pressed.
- - - - -


2 changed files:

- modules/stream_out/chromecast/cast.cpp
- modules/stream_out/dlna/dlna.cpp


Changes:

=====================================
modules/stream_out/chromecast/cast.cpp
=====================================
@@ -1068,9 +1068,9 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
                          _("Casting this video requires conversion. "
                            "This conversion can use all the available power and "
                            "could quickly drain your battery." ) );
+            perf_warning_shown = true;
             if ( res <= 0 )
                  return false;
-            perf_warning_shown = true;
             if ( res == 2 )
                 config_PutInt(RENDERER_CFG_PREFIX "show-perf-warning", 0 );
         }


=====================================
modules/stream_out/dlna/dlna.cpp
=====================================
@@ -372,9 +372,9 @@ int sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
                          _("Casting this video requires conversion. "
                            "This conversion can use all the available power and "
                            "could quickly drain your battery." ) );
+            perf_warning_shown = true;
             if ( res <= 0 )
                  return false;
-            perf_warning_shown = true;
             if ( res == 2 )
                 config_PutInt(RENDERER_CFG_PREFIX "show-perf-warning", 0 );
         }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/46b09b5208c74bd1ec432b186b78b1c6798edab2

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/46b09b5208c74bd1ec432b186b78b1c6798edab2
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list