Commit 5c13c83c authored by Sam Hocevar's avatar Sam Hocevar

* ./plugins/gtk/gtk_callbacks.c: some code cleaning.

  * ./plugins/text/rc.c: fixed the "a" command.
parent 950e98ee
......@@ -2,7 +2,7 @@
* gtk_callbacks.c : Callbacks for the Gtk+ plugin.
*****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN
* $Id: gtk_callbacks.c,v 1.45 2002/06/07 19:54:37 sam Exp $
* $Id: gtk_callbacks.c,v 1.46 2002/06/07 23:05:03 sam Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Stphane Borel <stef@via.ecp.fr>
......@@ -102,15 +102,14 @@ gboolean GtkFullscreen( GtkWidget *widget,
p_vout = vlc_object_find( p_intf->p_sys->p_input,
VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout )
if( p_vout == NULL )
{
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
vlc_object_release( p_vout );
return TRUE;
return FALSE;
}
return FALSE;
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
vlc_object_release( p_vout );
return TRUE;
}
void GtkWindowDrag( GtkWidget *widget,
......
......@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.18 2002/06/07 14:30:41 sam Exp $
* $Id: rc.c,v 1.19 2002/06/07 23:05:03 sam Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
......@@ -232,9 +232,15 @@ static void intf_Run( intf_thread_t *p_intf )
case 'A':
if( p_cmd[1] == ' ' )
{
// playlist_Add( p_intf, PLAYLIST_END, p_cmd + 2 );
// playlist_Jumpto( p_intf->p_vlc->p_playlist,
// p_intf->p_vlc->p_playlist->i_size-2 );
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
if( p_playlist )
{
playlist_Add( p_playlist, p_cmd + 2,
PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END );
vlc_object_release( p_playlist );
}
}
break;
......
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