Shorten condition.

This commit is contained in:
gb 2010-03-22 16:59:29 +00:00
parent 3136cdc991
commit df9e25d473

View file

@ -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;
}
}