]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/VLCVoutWindowController.m
Fix type
[vlc] / modules / gui / macosx / VLCVoutWindowController.m
index 082d7b11150f2f60986dd9928967acbf1fbb000a..6e3ea1c9a1fd2980939d1f091144ddb7fa54d2da 100644 (file)
     }
     [o_new_video_window setAlphaValue: config_GetFloat(VLCIntf, "macosx-opaqueness")];
 
-    if(b_nonembedded) {
-        // event occurs before window is created, so call again
-        [[VLCMain sharedInstance] playbackStatusUpdated];
-    }
+    if (!b_multiple_vout_windows)
+        [[VLCMainWindow sharedInstance] setNonembedded:b_nonembedded];
 
-    [[VLCMainWindow sharedInstance] setNonembedded:b_nonembedded];
     [o_vout_view setVoutThread:(vout_thread_t *)p_wnd->p_parent];
     [o_vout_dict setObject:[o_new_video_window autorelease] forKey:[NSValue valueWithPointer:p_wnd]];
 
+    if(b_nonembedded) {
+        // event occurs before window is created, so call again
+        [[VLCMain sharedInstance] playlistUpdated];
+    }
+
     return [o_vout_view autorelease];
 }
 
 
     [[o_window videoView] releaseVoutThread];
     [o_vout_dict removeObjectForKey:o_key];
+
+    if ([o_vout_dict count] == 0)
+        [[VLCMain sharedInstance] setActiveVideoPlayback:NO];
 }
 
 - (void)updateWindowsControlsBarWithSelector:(SEL)aSel