gstwaylandsrc: fix wayland usage method 60/304860/2 accepted/tizen/7.0/unified/20240201.013912
authorYoungwoo Cho <young222.cho@samsung.com>
Thu, 25 Jan 2024 01:12:29 +0000 (10:12 +0900)
committerYoungwoo Cho <young222.cho@samsung.com>
Fri, 26 Jan 2024 04:51:20 +0000 (13:51 +0900)
- `set_queue` to `wl_display` is not supported in current wayland version in tizen 7.0
- `wl_display_sync` is used to get callback handler about 'done' emit
    we don't handle that, so erase the code

Change-Id: I0fcdd4cf04555497f680640efed87e1f693e692c
Signed-off-by: Youngwoo Cho <young222.cho@samsung.com>
packaging/gst-plugins-tizen.spec
waylandsrc/src/gstwaylandsrc.c

index 33f0043..6b17be4 100644 (file)
@@ -5,7 +5,7 @@
 Name:       gst-plugins-tizen
 Version:    1.20.0
 Summary:    GStreamer tizen plugins (common)
-Release:    27
+Release:    28
 Group:      Multimedia/Framework
 Url:        http://gstreamer.freedesktop.org/
 License:    LGPL-2.1+
index a1d9493..a25546b 100644 (file)
@@ -380,7 +380,6 @@ mirror_handle_dequeued (void *data,
       }
       GST_DEBUG ("Buffer [%d] queued",
           wl_proxy_get_id ((struct wl_proxy *) out_buffer->wl_buffer));
-      wl_display_sync (src->display);
 
       tizen_screenmirror_queue (src->screenmirror, out_buffer->wl_buffer);
       return;
@@ -1066,7 +1065,7 @@ gst_wayland_src_connect (GstWaylandSrc * src)
 
   src->registry = wl_display_get_registry (src->display);
   src->queue = wl_display_create_queue (src->display);
-  wl_proxy_set_queue ((struct wl_proxy *) src->display, src->queue);
+
   wl_proxy_set_queue ((struct wl_proxy *) src->registry, src->queue);
 
   wl_registry_add_listener (src->registry, &registry_listener, src);
@@ -1469,8 +1468,6 @@ gst_wayland_src_gst_buffer_unref (gpointer data)
   tizen_screenmirror_queue (src->screenmirror, out_buffer->wl_buffer);
   GST_DEBUG ("Buffer [%d] queued",
       wl_proxy_get_id ((struct wl_proxy *) out_buffer->wl_buffer));
-
-  wl_display_sync (src->display);
 }
 
 static void