ximagesink: clear src and dest rectangles
Now that the center function also takes into account the x and y coordinates of the dest rectangle, better clear all the fields before using them.
This commit is contained in:
parent
8baf1ec500
commit
662a674f8a
@ -230,7 +230,9 @@ gst_ximagesink_ximage_put (GstXImageSink * ximagesink, GstBuffer * ximage)
|
|||||||
{
|
{
|
||||||
GstXImageMemory *mem;
|
GstXImageMemory *mem;
|
||||||
GstVideoCropMeta *crop;
|
GstVideoCropMeta *crop;
|
||||||
GstVideoRectangle src, dst, result;
|
GstVideoRectangle src = { 0, };
|
||||||
|
GstVideoRectangle dst = { 0, };
|
||||||
|
GstVideoRectangle result;
|
||||||
gboolean draw_border = FALSE;
|
gboolean draw_border = FALSE;
|
||||||
|
|
||||||
/* We take the flow_lock. If expose is in there we don't want to run
|
/* We take the flow_lock. If expose is in there we don't want to run
|
||||||
|
@ -229,7 +229,8 @@ gst_xvimagesink_xvimage_put (GstXvImageSink * xvimagesink, GstBuffer * xvimage)
|
|||||||
GstVideoCropMeta *crop;
|
GstVideoCropMeta *crop;
|
||||||
GstVideoRectangle result;
|
GstVideoRectangle result;
|
||||||
gboolean draw_border = FALSE;
|
gboolean draw_border = FALSE;
|
||||||
GstVideoRectangle src, dst;
|
GstVideoRectangle src = { 0, };
|
||||||
|
GstVideoRectangle dst = { 0, };
|
||||||
GstVideoRectangle mem_crop;
|
GstVideoRectangle mem_crop;
|
||||||
GstXWindow *xwindow;
|
GstXWindow *xwindow;
|
||||||
|
|
||||||
@ -1129,7 +1130,9 @@ gst_xvimagesink_navigation_send_event (GstNavigation * navigation,
|
|||||||
|
|
||||||
if ((peer = gst_pad_get_peer (GST_VIDEO_SINK_PAD (xvimagesink)))) {
|
if ((peer = gst_pad_get_peer (GST_VIDEO_SINK_PAD (xvimagesink)))) {
|
||||||
GstEvent *event;
|
GstEvent *event;
|
||||||
GstVideoRectangle src, dst, result;
|
GstVideoRectangle src = { 0, };
|
||||||
|
GstVideoRectangle dst = { 0, };
|
||||||
|
GstVideoRectangle result;
|
||||||
gdouble x, y, xscale = 1.0, yscale = 1.0;
|
gdouble x, y, xscale = 1.0, yscale = 1.0;
|
||||||
GstXWindow *xwindow;
|
GstXWindow *xwindow;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user