]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/commands/cmd_quit.cpp
mtime: Minimize imprecision and prevent overflow on darwin.
[vlc] / modules / gui / skins2 / commands / cmd_quit.cpp
index 316243139b81a5eafd7d189301fc62b84418168e..b6d49fa6478cb575e77d53960166e446a03d2030 100644 (file)
 
 void CmdQuit::execute()
 {
-    // Stop the playlist
-    vout_OSDMessage( getIntf(), SPU_DEFAULT_CHANNEL, "%s", _( "Quit" ) );
+    if( getIntf()->p_sys->p_input )
+    {
+        vout_thread_t *pVout = input_GetVout( getIntf()->p_sys->p_input );
+        if( pVout )
+        {
+            vout_OSDMessage( pVout, SPU_DEFAULT_CHANNEL, "%s", _( "Quit" ) );
+            vlc_object_release( pVout );
+        }
+    }
 
     // Kill libvlc
     libvlc_Quit( getIntf()->p_libvlc );