]> git.sesse.net Git - vlc/blobdiff - modules/visualization/projectm.cpp
New sub-filter support add new "sub filter" capability for processing subpictures...
[vlc] / modules / visualization / projectm.cpp
index e0154590035fd79c5bb6f4f13a3c327fee0e170a..e76e9dd8303fbb9d21029546111f164136a1f45a 100644 (file)
@@ -33,6 +33,7 @@
 #include <vlc_aout.h>
 #include <vlc_vout.h>
 #include <vlc_vout_wrapper.h>
+#include <vlc_opengl.h>
 #include <vlc_filter.h>
 #include <vlc_rand.h>
 
@@ -285,7 +286,7 @@ static void *Thread( void *p_data )
     filter_sys_t *p_sys = p_filter->p_sys;
     int cancel = vlc_savecancel();
     video_format_t fmt;
-    vout_opengl_t *gl;
+    vlc_gl_t *gl;
     int i_last_width  = 0;
     int i_last_height = 0;
     locale_t loc;
@@ -357,7 +358,7 @@ static void *Thread( void *p_data )
     if ( psz_preset_path == NULL )
     {
         char *psz_data_path = config_GetDataDir( p_filter );
-        asprintf( &psz_preset_path, "%s" DIR_SEP "visualisation", psz_data_path );
+        asprintf( &psz_preset_path, "%s" DIR_SEP "visualization", psz_data_path );
         free( psz_data_path );
     }
 #endif
@@ -442,10 +443,10 @@ static void *Thread( void *p_data )
         /* */
         mwait( i_deadline );
 
-        if( !vout_opengl_Lock(gl) )
+        if( !vlc_gl_Lock(gl) )
         {
-            vout_opengl_Swap( gl );
-            vout_opengl_Unlock( gl );
+            vlc_gl_Swap( gl );
+            vlc_gl_Unlock( gl );
         }
     }
     abort();