From: Laurent Aimar Date: Tue, 6 Sep 2011 19:19:52 +0000 (+0200) Subject: Removed display of title by goom visualization plugin. X-Git-Tag: 1.2.0-pre1~806 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=accf423b7c2eb24db606063c8eb949b5bb2ad630;p=vlc Removed display of title by goom visualization plugin. It is not reliable if the aout is reused, and the text support seems incomplete in goom. --- diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c index 53cae4d008..52253e4e7d 100644 --- a/modules/visualization/goom.c +++ b/modules/visualization/goom.c @@ -85,8 +85,6 @@ typedef struct vout_thread_t *p_vout; int i_speed; - char *psz_title; - vlc_mutex_t lock; vlc_cond_t wait; bool b_exit; @@ -112,8 +110,6 @@ static block_t *DoWork ( filter_t *, block_t * ); static void *Thread( void * ); -static char *TitleGet( vlc_object_t * ); - /***************************************************************************** * Open: open a scope effect plugin *****************************************************************************/ @@ -176,8 +172,6 @@ static int Open( vlc_object_t *p_this ) date_Set( &p_thread->date, 0 ); p_thread->i_channels = aout_FormatNbChannels( &p_filter->fmt_in.audio ); - p_thread->psz_title = TitleGet( VLC_OBJECT( p_filter ) ); - if( vlc_clone( &p_thread->thread, Thread, p_thread, VLC_THREAD_PRIORITY_LOW ) ) { @@ -185,7 +179,6 @@ static int Open( vlc_object_t *p_this ) vlc_object_release( p_thread->p_vout ); vlc_mutex_destroy( &p_thread->lock ); vlc_cond_destroy( &p_thread->wait ); - free( p_thread->psz_title ); free( p_thread ); free( p_sys ); return VLC_EGENERIC; @@ -344,10 +337,7 @@ static void *Thread( void *p_thread_data ) if( date_Get( &i_pts ) + GOOM_DELAY <= mdate() ) continue; plane = goom_update( p_plugin_info, p_data, 0, 0.0, - p_thread->psz_title, NULL ); - - free( p_thread->psz_title ); - p_thread->psz_title = NULL; + NULL, NULL ); while( !( p_pic = vout_GetPicture( p_thread->p_vout ) ) ) { @@ -403,14 +393,3 @@ static void Close( vlc_object_t *p_this ) free( p_sys ); } -static char *TitleGet( vlc_object_t *p_this ) -{ - input_thread_t *p_input = playlist_CurrentInput( pl_Get( p_this ) ); - if( p_input ) - { - char *psz_title = input_item_GetTitleFbName( input_GetItem( p_input ) ); - vlc_object_release( p_input ); - return psz_title; - } - return NULL; -}