* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teuli�e <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* 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
#include <vlc_aout.h>
#include <vlc_vout.h>
#include <vlc_playlist.h>
+#include <vlc_window.h>
#include "vlcproc.hpp"
#include "os_factory.hpp"
var_AddCallback( pIntf->p_sys->p_playlist, "item-deleted",
onItemDelete, this );
// Called when the "interface shower" wants us to show the skin
- var_AddCallback( pIntf->p_sys->p_playlist, "intf-show",
+ var_AddCallback( pIntf->p_libvlc, "intf-show",
onIntfShow, this );
// Called when the current played item changes
var_AddCallback( pIntf->p_sys->p_playlist, "playlist-current",
var_AddCallback( pIntf, "interaction", onInteraction, this );
pIntf->b_interaction = true;
- // Callbacks for vout requests
- getIntf()->pf_request_window = &getWindow;
- getIntf()->pf_release_window = &releaseWindow;
- getIntf()->pf_control_window = &controlWindow;
-
getIntf()->p_sys->p_input = NULL;
}
vlc_object_release( getIntf()->p_sys->p_input );
}
- // Callbacks for vout requests
- getIntf()->pf_request_window = NULL;
- getIntf()->pf_release_window = NULL;
- getIntf()->pf_control_window = NULL;
-
var_DelCallback( getIntf()->p_sys->p_playlist, "intf-change",
onIntfChange, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "item-append",
onItemAppend, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "item-deleted",
onItemDelete, this );
- var_DelCallback( getIntf()->p_sys->p_playlist, "intf-show",
+ var_DelCallback( getIntf()->p_libvlc, "intf-show",
onIntfShow, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "playlist-current",
onPlaylistChange, this );
}
- if( pInput && !pInput->b_die )
+ if( pInput && vlc_object_alive (pInput) )
{
// Refresh time variables
vlc_value_t pos;
}
-int VlcProc::controlWindow( intf_thread_t *pIntf, void *pWindow,
+int VlcProc::controlWindow( struct vout_window_t *pWnd,
int query, va_list args )
{
+ intf_thread_t *pIntf = (intf_thread_t *)pWnd->p_private;
VlcProc *pThis = pIntf->p_sys->p_vlcProc;
switch( query )
// Post a resize vout command
CmdResizeVout *pCmd =
- new CmdResizeVout( pThis->getIntf(), pWindow,
+ new CmdResizeVout( pThis->getIntf(), pWnd->handle,
i_width, i_height );
AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() );
pQueue->push( CmdGenericPtr( pCmd ) );
}
default:
- msg_Dbg( pIntf, "control query not supported" );
+ msg_Dbg( pWnd, "control query not supported" );
break;
}