]> git.sesse.net Git - vlc/blobdiff - modules/visualization/projectm.cpp
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / visualization / projectm.cpp
index d504d22ab362dfd749ee5900cd2bc231a531218f..90ca9c8eefc3752ca381b641f3ee1ad55d4565c6 100644 (file)
@@ -172,8 +172,8 @@ static int Open( vlc_object_t * p_this )
     p_sys->psz_config = var_InheritString( p_filter, "projectm-config" );
 #else
     p_sys->psz_preset_path = var_InheritString( p_filter, "projectm-preset-path" );
-    p_sys->psz_preset_path = var_InheritString( p_filter, "projectm-title-font" );
-    p_sys->psz_preset_path = var_InheritString( p_filter, "projectm-menu-font" );
+    p_sys->psz_title_font = var_InheritString( p_filter, "projectm-title-font" );
+    p_sys->psz_menu_font = var_InheritString( p_filter, "projectm-menu-font" );
 #endif
     vlc_mutex_init( &p_sys->lock );
     p_sys->p_buffer = NULL;
@@ -302,6 +302,8 @@ static void *Thread( void *p_data )
     if( !p_sys->p_vout )
         goto error;
 
+    vlc_object_attach( p_sys->p_vout, p_filter );
+
     /* */
     video_format_Init( &fmt, 0 );
     video_format_Setup( &fmt, VLC_CODEC_RGB32,