]> git.sesse.net Git - vlc/commitdiff
macosx: display only information on the currently playing item instead of the item...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 4 Jan 2009 18:39:41 +0000 (19:39 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 4 Jan 2009 18:39:53 +0000 (19:39 +0100)
modules/gui/macosx/intf.m
modules/gui/macosx/playlist.m

index 24582a47a78e54b7869866dd1fa7c6403edbcd48..5649f6df7c83670d9383fcbaed02157ffbfff630 100644 (file)
@@ -1510,7 +1510,12 @@ static void * manage_cleanup( void * args )
             {
                 b_buffering = YES;
             }
-                 
+
+            /* update our info-panel to reflect the new item */
+            [[[VLCMain sharedInstance] getInfo]
+                updatePanelWithItem: 
+                    playlist_CurrentPlayingItem( p_playlist )->p_input];
+
             /* seekable streams */
             b_seekable = var_GetBool( p_input, "can-seek" );
 
index 71ace0ecd691bef47b622f73881d4d3cd19d173b..1ab42bbf398db94a0c5b086006203e63481a16cf 100644 (file)
 
     if( p_item )
     {
-        /* update our info-panel to reflect the new item */
-        [[[VLCMain sharedInstance] getInfo] updatePanelWithItem:p_item->p_input];
-        
         /* update the state of our Reveal-in-Finder menu items */
         NSMutableString *o_mrl;
         char *psz_uri = input_item_GetURI( p_item->p_input );
     return( o_ctx_menu );
 }
 
-- (void)outlineView: (NSTableView*)o_tv
+- (void)outlineView: (NSTableView *)o_tv
                   didClickTableColumn:(NSTableColumn *)o_tc
 {
-    int i_mode = 0, i_type;
+    int i_mode, i_type = 0;
     intf_thread_t *p_intf = VLCIntf;
 
     playlist_t *p_playlist = pl_Hold( p_intf );