mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Shorten condition.
This commit is contained in:
parent
3136cdc991
commit
df9e25d473
1 changed files with 4 additions and 5 deletions
|
@ -335,11 +335,10 @@ gst_vaapi_window_set_fullscreen(GstVaapiWindow *window, gboolean fullscreen)
|
|||
|
||||
klass = GST_VAAPI_WINDOW_GET_CLASS(window);
|
||||
|
||||
if (window->priv->is_fullscreen != fullscreen && klass->set_fullscreen) {
|
||||
if (klass->set_fullscreen(window, fullscreen)) {
|
||||
window->priv->is_fullscreen = fullscreen;
|
||||
window->priv->is_fullscreen_changed = TRUE;
|
||||
}
|
||||
if (window->priv->is_fullscreen != fullscreen &&
|
||||
klass->set_fullscreen && klass->set_fullscreen(window, fullscreen)) {
|
||||
window->priv->is_fullscreen = fullscreen;
|
||||
window->priv->is_fullscreen_changed = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue