mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapisink: fix gcc compiler warning
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
This commit is contained in:
parent
f5360282bc
commit
42df9ba98c
1 changed files with 2 additions and 2 deletions
|
@ -1376,6 +1376,7 @@ gst_vaapisink_show_frame_unlocked (GstVaapiSink * sink, GstBuffer * src_buffer)
|
|||
GstVaapiRectangle tmp_rect;
|
||||
GstFlowReturn ret;
|
||||
gint32 view_id;
|
||||
GstVideoCropMeta *crop_meta;
|
||||
|
||||
if (!src_buffer) {
|
||||
if (sink->video_buffer)
|
||||
|
@ -1384,8 +1385,7 @@ gst_vaapisink_show_frame_unlocked (GstVaapiSink * sink, GstBuffer * src_buffer)
|
|||
return GST_FLOW_OK;
|
||||
}
|
||||
|
||||
GstVideoCropMeta *const crop_meta =
|
||||
gst_buffer_get_video_crop_meta (src_buffer);
|
||||
crop_meta = gst_buffer_get_video_crop_meta (src_buffer);
|
||||
if (crop_meta) {
|
||||
surface_rect = &tmp_rect;
|
||||
surface_rect->x = crop_meta->x;
|
||||
|
|
Loading…
Reference in a new issue