wayland: rename is_cancelled to sync_failed
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 24 Aug 2015 17:22:14 +0000 (19:22 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 24 Aug 2015 17:24:07 +0000 (19:24 +0200)
Since commit 065a18a3, the semantics of the variable is_cancelled did not make
sense. This commit renames this variable to sync_failed.

gst-libs/gst/vaapi/gstvaapiwindow_wayland.c

index 96d1d74a31e667594b624d0ed93afeb89e517cb4..aeffc38b3c565ff69e45e9de6fbd2a2026e77c45 100644 (file)
@@ -109,7 +109,7 @@ struct _GstVaapiWindowWaylandPrivate
   guint is_shown:1;
   guint fullscreen_on_show:1;
   guint use_vpp:1;
-  guint is_cancelled:1;
+  guint sync_failed:1;
   volatile guint num_frames_pending;
 };
 
@@ -161,7 +161,7 @@ gst_vaapi_window_wayland_sync (GstVaapiWindow * window)
   struct wl_display *const wl_display =
       GST_VAAPI_OBJECT_NATIVE_DISPLAY (window);
 
-  if (priv->is_cancelled)
+  if (priv->sync_failed)
     return FALSE;
 
   if (priv->pollfd.fd < 0) {
@@ -199,7 +199,7 @@ gst_vaapi_window_wayland_sync (GstVaapiWindow * window)
   return TRUE;
 
 error:
-  priv->is_cancelled = TRUE;
+  priv->sync_failed = TRUE;
   GST_ERROR ("Error on dispatching events: %s", g_strerror (errno));
   return FALSE;
 }
@@ -517,7 +517,7 @@ gst_vaapi_window_wayland_render (GstVaapiWindow * window,
   /* Wait for the previous frame to complete redraw */
   if (!gst_vaapi_window_wayland_sync (window)) {
     wl_buffer_destroy (buffer);
-    return !priv->is_cancelled;
+    return !priv->sync_failed;
   }
 
   frame = frame_state_new (window);