diff options
author | Wim Taymans <wtaymans@redhat.com> | 2014-12-16 13:35:14 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-12-16 13:35:14 +0100 |
commit | 87f5574e3969c3b1269cfe09a7165f2b54ef0fa3 (patch) | |
tree | 6da5e4ef45da3cc7e1ee84d69003fad0bb4e1e74 /ext | |
parent | 79b56ebcc9511a50d9fe9fbb93b48d5c2170bad8 (diff) | |
download | gstreamer-plugins-bad-87f5574e3969c3b1269cfe09a7165f2b54ef0fa3.tar.gz |
rectangle: clear rectangle struct before use
Diffstat (limited to 'ext')
-rw-r--r-- | ext/directfb/dfbvideosink.c | 8 | ||||
-rw-r--r-- | ext/sdl/sdlvideosink.c | 4 | ||||
-rw-r--r-- | ext/wayland/wlwindow.c | 6 |
3 files changed, 13 insertions, 5 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; diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c index 5c1217f87..7f05dcad8 100644 --- a/ext/sdl/sdlvideosink.c +++ b/ext/sdl/sdlvideosink.c @@ -944,7 +944,9 @@ gst_sdlvideosink_navigation_send_event (GstNavigation * navigation, { GstSDLVideoSink *sdlvideosink = GST_SDLVIDEOSINK (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; diff --git a/ext/wayland/wlwindow.c b/ext/wayland/wlwindow.c index ab7eddabb..a964335f5 100644 --- a/ext/wayland/wlwindow.c +++ b/ext/wayland/wlwindow.c @@ -237,7 +237,8 @@ gst_wl_window_is_toplevel (GstWlWindow * window) static void gst_wl_window_resize_video_surface (GstWlWindow * window, gboolean commit) { - GstVideoRectangle src, res; + GstVideoRectangle src = { 0, }; + GstVideoRectangle res; /* center the video_subsurface inside area_subsurface */ src.w = window->video_width; @@ -256,7 +257,8 @@ gst_wl_window_resize_video_surface (GstWlWindow * window, gboolean commit) struct wl_region *region; region = wl_compositor_create_region (window->display->compositor); - wl_region_add(region, 0, 0, window->render_rectangle.w, window->render_rectangle.h); + wl_region_add (region, 0, 0, window->render_rectangle.w, + window->render_rectangle.h); wl_surface_set_input_region (window->area_surface, region); wl_region_destroy (region); } |