mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
gloverlaycompositor: fix crash if buffer doesn't have video meta
Fix #501
This commit is contained in:
parent
ad9d81d319
commit
d90ac65af1
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue