g_value_init (&list, GST_TYPE_LIST);
g_value_init (&value, G_TYPE_STRING);
- formats = sink->display->formats;
+ formats = sink->display->shm_formats;
for (i = 0; i < formats->len; i++) {
fmt = g_array_index (formats, uint32_t, i);
g_value_set_string (&value, gst_wl_shm_format_to_string (fmt));
goto invalid_format;
/* verify we support the requested format */
- formats = sink->display->formats;
+ formats = sink->display->shm_formats;
for (i = 0; i < formats->len; i++) {
if (g_array_index (formats, uint32_t, i) == format)
break;
static void
gst_wl_display_init (GstWlDisplay * self)
{
- self->formats = g_array_new (FALSE, FALSE, sizeof (uint32_t));
+ self->shm_formats = g_array_new (FALSE, FALSE, sizeof (uint32_t));
self->wl_fd_poll = gst_poll_new (TRUE);
self->buffers = g_hash_table_new (g_direct_hash, g_direct_equal);
g_mutex_init (&self->buffers_mutex);
(GHFunc) gst_wl_buffer_force_release_and_unref, NULL);
g_hash_table_remove_all (self->buffers);
- g_array_unref (self->formats);
+ g_array_unref (self->shm_formats);
gst_poll_free (self->wl_fd_poll);
g_hash_table_unref (self->buffers);
g_mutex_clear (&self->buffers_mutex);
{
GstWlDisplay *self = data;
- g_array_append_val (self->formats, format);
+ g_array_append_val (self->shm_formats, format);
}
static const struct wl_shm_listener shm_listener = {