Commit a5762cd9 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix the 'currently playing' field in the OSX intf.

parent 5ca0ebcc
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* intf.m: MacOS X interface plugin * intf.m: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * Copyright (C) 2002-2003 VideoLAN
* $Id: intf.m,v 1.108 2003/12/21 23:32:58 sam Exp $ * $Id: intf.m,v 1.109 2003/12/22 14:45:37 hartman Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
* Derk-Jan Hartman <thedj@users.sourceforge.net> * Derk-Jan Hartman <hartman at videolan.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -431,6 +431,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -431,6 +431,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
- (void)initStrings - (void)initStrings
{ {
[o_window setTitle: _NS("VLC - Controller")]; [o_window setTitle: _NS("VLC - Controller")];
[o_scrollfield setStringValue: _NS("VLC Media Player")];
/* button controls */ /* button controls */
[o_btn_prev setToolTip: _NS("Previous")]; [o_btn_prev setToolTip: _NS("Previous")];
...@@ -707,6 +708,12 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -707,6 +708,12 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
{ {
vout_thread_t *p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT, vout_thread_t *p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT,
FIND_ANYWHERE ); FIND_ANYWHERE );
vlc_mutex_lock( &p_playlist->object_lock );
[o_scrollfield setStringValue: [NSString stringWithUTF8String:
p_playlist->pp_items[p_playlist->i_index]->psz_name]];
vlc_mutex_unlock( &p_playlist->object_lock );
if( p_vout != NULL ) if( p_vout != NULL )
{ {
id o_vout_wnd; id o_vout_wnd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment