vaapipostproc: don't let tmp_rect go out of scope.
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>
Fri, 27 Jun 2014 10:57:11 +0000 (11:57 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 3 Jul 2014 20:59:36 +0000 (22:59 +0200)
commit4d2de696a99201d53371fbe3c0dcb51d33404a9a
tree3fa764e92aaf9d8854c75eb5fa396ecaf80fbc3d
parent04b82421e5ed249bccde218b71c27572ae95b829
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>
gst/vaapi/gstvaapipostproc.c