[vlc-commits] Removed display of title by goom visualization plugin.

Laurent Aimar git at videolan.org
Tue Sep 6 21:21:23 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Sep  6 21:19:52 2011 +0200| [accf423b7c2eb24db606063c8eb949b5bb2ad630] | committer: Laurent Aimar

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=accf423b7c2eb24db606063c8eb949b5bb2ad630
---

 modules/visualization/goom.c |   23 +----------------------
 1 files changed, 1 insertions(+), 22 deletions(-)

diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c
index 53cae4d..52253e4 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;
-}



More information about the vlc-commits mailing list