[vlc-devel] commit: macosx: display only information on the currently playing item instead of the item selected in the playlist ( Felix Paul Kühne )
git version control
git at videolan.org
Sun Jan 4 19:39:54 CET 2009
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Jan 4 19:39:41 2009 +0100| [e6d4f6abaa20d57b5f06dd711d4a1f46c2367438] | committer: Felix Paul Kühne
macosx: display only information on the currently playing item instead of the item selected in the playlist
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e6d4f6abaa20d57b5f06dd711d4a1f46c2367438
---
modules/gui/macosx/intf.m | 7 ++++++-
modules/gui/macosx/playlist.m | 7 ++-----
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 24582a4..5649f6d 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -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" );
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 71ace0e..1ab42bb 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -525,9 +525,6 @@
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 );
@@ -1334,10 +1331,10 @@
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 );
More information about the vlc-devel
mailing list