Commit d90ac65a authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐 Committed by Tim-Philipp Müller

gloverlaycompositor: fix crash if buffer doesn't have video meta

Fix #501
parent ad9d81d3
......@@ -248,6 +248,10 @@ gst_gl_composition_overlay_add_transformation (GstGLCompositionOverlay *
float rel_x, rel_y, rel_w, rel_h;
meta = gst_buffer_get_video_meta (video_buffer);
if (!meta) {
GST_WARNING_OBJECT (overlay, "buffer doesn't contain video meta");
return;
}
gst_video_overlay_rectangle_get_render_rectangle (overlay->rectangle,
&comp_x, &comp_y, &comp_width, &comp_height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment