diff options
author | Simon Farnsworth <simon.farnsworth@onelan.co.uk> | 2014-06-27 11:57:11 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-07-03 22:59:36 +0200 |
commit | 4d2de696a99201d53371fbe3c0dcb51d33404a9a (patch) | |
tree | 3fa764e92aaf9d8854c75eb5fa396ecaf80fbc3d /gst | |
parent | 04b82421e5ed249bccde218b71c27572ae95b829 (diff) |
vaapipostproc: don't let tmp_rect go out of scope.
A compiler change showed me that tmp_rect went out of scope before
it was used. Move it to the beginning of the function instead.
https://bugzilla.gnome.org/show_bug.cgi?id=726363
Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
[added guards for GStreamer 0.10 builds]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/vaapi/gstvaapipostproc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index aa0cb989..e692f54a 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -448,6 +448,9 @@ gst_vaapipostproc_process_vpp(GstBaseTransform *trans, GstBuffer *inbuf, guint flags, deint_flags; gboolean tff, deint, deint_refs, deint_changed; GstVaapiRectangle *crop_rect = NULL; +#if GST_CHECK_VERSION(1,0,0) + GstVaapiRectangle tmp_rect; +#endif /* Validate filters */ if ((postproc->flags & GST_VAAPI_POSTPROC_FLAG_FORMAT) && @@ -493,7 +496,6 @@ gst_vaapipostproc_process_vpp(GstBaseTransform *trans, GstBuffer *inbuf, GstVideoCropMeta * const crop_meta = gst_buffer_get_video_crop_meta(inbuf); if (crop_meta) { - GstVaapiRectangle tmp_rect; crop_rect = &tmp_rect; crop_rect->x = crop_meta->x; crop_rect->y = crop_meta->y; |