Commit 3396d9f3 authored by Rémi Duraffort's avatar Rémi Duraffort

skins2: use input_GetVout when possible.

parent be84b46a
/*****************************************************************************
* cmd_fullscreen.cpp
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* Copyright (C) 2003-2009 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
......@@ -29,15 +29,11 @@
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>
......@@ -27,15 +27,10 @@
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>
......@@ -369,8 +369,7 @@ void VlcProc::refreshInput()
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 )
{
......
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