p_intf( _p_intf )
{
ui.setupUi( _parent );
+ p_vout = NULL;
#define SETUP_VFILTER( widget ) \
{ \
void ExtVideo::cropChange()
{
- p_vout = ( vout_thread_t * )vlc_object_find( p_intf,
- VLC_OBJECT_VOUT, FIND_ANYWHERE );
- if( p_vout )
+ if( THEMIM->getInput() )
{
- var_SetInteger( p_vout, "crop-top", ui.cropTopPx->value() );
- var_SetInteger( p_vout, "crop-bottom", ui.cropBotPx->value() );
- var_SetInteger( p_vout, "crop-left", ui.cropLeftPx->value() );
- var_SetInteger( p_vout, "crop-right", ui.cropRightPx->value() );
+ p_vout = ( vout_thread_t * )vlc_object_find( THEMIM->getInput(),
+ VLC_OBJECT_VOUT, FIND_CHILD );
+ if( p_vout )
+ {
+ var_SetInteger( p_vout, "crop-top", ui.cropTopPx->value() );
+ var_SetInteger( p_vout, "crop-bottom", ui.cropBotPx->value() );
+ var_SetInteger( p_vout, "crop-left", ui.cropLeftPx->value() );
+ var_SetInteger( p_vout, "crop-right", ui.cropRightPx->value() );
+ }
+ vlc_object_release( p_vout );
}
}
ui.subpictureFilterText->setText( psz_string );
/* Try to set on the fly */
- p_vout = ( vout_thread_t * )vlc_object_find( p_intf, VLC_OBJECT_VOUT,
- FIND_ANYWHERE );
+ if( THEMIM->getInput() )
+ p_vout = ( vout_thread_t * )vlc_object_find( THEMIM->getInput(),
+ VLC_OBJECT_VOUT, FIND_CHILD );
if( p_vout )
{
if( !strcmp( psz_filter_type, "sub-filter" ) )
void ExtVideo::updateFilters()
{
QString module = ModuleFromWidgetName( sender() );
- //std::cout << "Module name: " << module.toStdString() << std::endl;
QCheckBox *checkbox = qobject_cast<QCheckBox*>( sender() );
QGroupBox *groupbox = qobject_cast<QGroupBox*>( sender() );