if (!gst_gl_ensure_element_data (ca_sink, &ca_sink->display,
&ca_sink->other_context))
return FALSE;
if (!gst_gl_ensure_element_data (ca_sink, &ca_sink->display,
&ca_sink->other_context))
return FALSE;
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
g_atomic_int_set (&ca_sink->to_quit, 0);
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
g_atomic_int_set (&ca_sink->to_quit, 0);