Skip to content

Commit d443bf3

Browse files
committed
check for gl errors after creating projectm instance
1 parent 2b3d5e8 commit d443bf3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/gstglbaseaudiovisualizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ gst_gl_base_audio_visualizer_render (GstAudioVisualizer *bscope, GstBuffer *audi
298298

299299
g_rec_mutex_lock (&glav->priv->context_lock);
300300

301-
// make params privately accessible to the plugin
301+
// wrap params into cb_params struct to pass them to the GL window/thread via userdata pointer
302302
cb_params.glav = glav;
303303
cb_params.in_audio = audio;
304304
cb_params.out_video = video;

src/plugin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ static gboolean gst_projectm_gl_start(GstGLBaseAudioVisualizer *glav)
234234
GST_ERROR_OBJECT(plugin, "ProjectM could not be initialized");
235235
return FALSE;
236236
}
237+
gl_error_handler(glav->context, plugin);
237238
}
238239

239240
return TRUE;

0 commit comments

Comments
 (0)