summaryrefslogtreecommitdiff
path: root/ext/directfb
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-12-16 13:35:14 +0100
committerWim Taymans <wtaymans@redhat.com>2014-12-16 13:35:14 +0100
commit87f5574e3969c3b1269cfe09a7165f2b54ef0fa3 (patch)
tree6da5e4ef45da3cc7e1ee84d69003fad0bb4e1e74 /ext/directfb
parent79b56ebcc9511a50d9fe9fbb93b48d5c2170bad8 (diff)
downloadgstreamer-plugins-bad-87f5574e3969c3b1269cfe09a7165f2b54ef0fa3.tar.gz
rectangle: clear rectangle struct before use
Diffstat (limited to 'ext/directfb')
-rw-r--r--ext/directfb/dfbvideosink.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/directfb/dfbvideosink.c b/ext/directfb/dfbvideosink.c
index dfe49c3d5..bafe4bade 100644
--- a/ext/directfb/dfbvideosink.c
+++ b/ext/directfb/dfbvideosink.c
@@ -1744,7 +1744,9 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
{
GstDfbVideoSink *dfbvideosink = NULL;
DFBResult res;
- GstVideoRectangle dst, src, result;
+ GstVideoRectangle dst = { 0, };
+ GstVideoRectangle src = { 0, };
+ GstVideoRectangle result;
GstFlowReturn ret = GST_FLOW_OK;
gboolean mem_cpy = TRUE;
GstMetaDfbSurface *meta;
@@ -1975,7 +1977,9 @@ gst_dfbvideosink_navigation_send_event (GstNavigation * navigation,
{
GstDfbVideoSink *dfbvideosink = GST_DFBVIDEOSINK (navigation);
GstEvent *event;
- GstVideoRectangle src, dst, result;
+ GstVideoRectangle dst = { 0, };
+ GstVideoRectangle src = { 0, };
+ GstVideoRectangle result;
double x, y, old_x, old_y;
GstPad *pad = NULL;