[vlc-devel] commit: Extensions/Qt: listen to input-change events ( Jean-Philippe André )
Laurent Aimar
fenrir at via.ecp.fr
Wed Feb 3 21:00:16 CET 2010
On Wed, Feb 03, 2010, git version control wrote:
> +void ExtensionsManager::inputChanged( input_thread_t* p_input )
> +{
> + if( p_input )
> + vlc_object_hold( p_input );
> + vlc_mutex_lock( &p_extensions_manager->lock );
> +
> + extension_t *p_ext;
> + FOREACH_ARRAY( p_ext, p_extensions_manager->extensions )
> + {
> + if( extension_IsActivated( p_extensions_manager, p_ext ) )
> + {
> + extension_SetInput( p_extensions_manager, p_ext, p_input );
> + }
> + }
> + FOREACH_END()
> +
> + vlc_mutex_unlock( &p_extensions_manager->lock );
> + if( p_input )
> + vlc_object_release( p_input );
> +}
Useless pair of hold()/release()I think.
--
fenrir
More information about the vlc-devel
mailing list