mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
glimagesink: update display size before sending event
This is minor issue, as the reconfigure event is asynchronous. Basically, update width/height before sending the event.
This commit is contained in:
parent
206638c439
commit
88d7b22d40
1 changed files with 3 additions and 3 deletions
|
@ -1775,15 +1775,15 @@ gst_glimage_sink_do_resize (GstGLImageSink * gl_sink, gint width, gint height)
|
||||||
&& (gl_sink->window_width != 0)
|
&& (gl_sink->window_width != 0)
|
||||||
&& (gl_sink->window_height != 0);
|
&& (gl_sink->window_height != 0);
|
||||||
|
|
||||||
|
gl_sink->window_width = width;
|
||||||
|
gl_sink->window_height = height;
|
||||||
|
|
||||||
if (reconfigure) {
|
if (reconfigure) {
|
||||||
GST_DEBUG ("Sending reconfigure event on sinkpad.");
|
GST_DEBUG ("Sending reconfigure event on sinkpad.");
|
||||||
gst_pad_push_event (GST_BASE_SINK (gl_sink)->sinkpad,
|
gst_pad_push_event (GST_BASE_SINK (gl_sink)->sinkpad,
|
||||||
gst_event_new_reconfigure ());
|
gst_event_new_reconfigure ());
|
||||||
}
|
}
|
||||||
|
|
||||||
gl_sink->window_width = width;
|
|
||||||
gl_sink->window_height = height;
|
|
||||||
|
|
||||||
/* default reshape */
|
/* default reshape */
|
||||||
if (!do_reshape) {
|
if (!do_reshape) {
|
||||||
if (gl_sink->keep_aspect_ratio) {
|
if (gl_sink->keep_aspect_ratio) {
|
||||||
|
|
Loading…
Reference in a new issue