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 /sys/vdpau | |
parent | 79b56ebcc9511a50d9fe9fbb93b48d5c2170bad8 (diff) | |
download | gstreamer-plugins-bad-87f5574e3969c3b1269cfe09a7165f2b54ef0fa3.tar.gz |
rectangle: clear rectangle struct before use
Diffstat (limited to 'sys/vdpau')
-rw-r--r-- | sys/vdpau/gstvdpvideopostprocess.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vdpau/gstvdpvideopostprocess.c b/sys/vdpau/gstvdpvideopostprocess.c index 483e74a54..b7b68798c 100644 --- a/sys/vdpau/gstvdpvideopostprocess.c +++ b/sys/vdpau/gstvdpvideopostprocess.c @@ -674,9 +674,8 @@ gst_vdp_vpp_drain (GstVdpVideoPostProcess * vpp) GstVdpOutputBuffer *outbuf; GstStructure *structure; - GstVideoRectangle src_r = { 0, } - , dest_r = { - 0,}; + GstVideoRectangle src_r = { 0, }; + GstVideoRectangle dest_r = { 0, }; VdpRect rect; GstVdpDevice *device; @@ -705,7 +704,7 @@ gst_vdp_vpp_drain (GstVdpVideoPostProcess * vpp) goto invalid_caps; if (vpp->force_aspect_ratio) { - GstVideoRectangle res_r; + GstVideoRectangle res_r = { 0, }; gst_video_sink_center_rect (src_r, dest_r, &res_r, TRUE); rect.x0 = res_r.x; |