/*****************************************************************************
* cmd_fullscreen.cpp
*****************************************************************************
- * Copyright (C) 2003 the VideoLAN team
+ * Copyright (C) 2003-2009 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
void CmdFullscreen::execute()
{
- vout_thread_t *pVout;
if( getIntf()->p_sys->p_input == NULL )
- {
return;
- }
- pVout = (vout_thread_t *)vlc_object_find( getIntf()->p_sys->p_input,
- VLC_OBJECT_VOUT, FIND_ANYWHERE );
+ vout_thread_t *pVout = input_GetVout( getIntf()->p_sys->p_input );
if( pVout )
{
// Switch to fullscreen
/*****************************************************************************
* cmd_snapshot.cpp
*****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2009 the VideoLAN team
* $Id$
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
void CmdSnapshot::execute()
{
- vout_thread_t *pVout;
-
if( getIntf()->p_sys->p_input == NULL )
- {
return;
- }
- pVout = (vout_thread_t *)vlc_object_find( getIntf()->p_sys->p_input,
- VLC_OBJECT_VOUT, FIND_CHILD );
+ vout_thread_t *pVout = input_GetVout( getIntf()->p_sys->p_input );
if( pVout )
{
// Take a snapshot
/*****************************************************************************
* vlcproc.cpp
*****************************************************************************
- * Copyright (C) 2003 the VideoLAN team
+ * Copyright (C) 2003-2009 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
pVarHasAudio->set( audio_es.i_int > 0 );
// Refresh fullscreen status
- vout_thread_t *pVout = (vout_thread_t *)vlc_object_find( pInput,
- VLC_OBJECT_VOUT, FIND_CHILD );
+ vout_thread_t *pVout = input_GetVout( pInput );
pVarHasVout->set( pVout != NULL );
if( pVout )
{