[Bug 760502] waylandsink: Preconditon of display handle is wrong, waylandsink need to change form GST_ELEMENT_ERROR to GST_ELEMENT_WARNING in gst_wayland_sink_set_window_handle
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Sep 21 19:36:50 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=760502
Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |nicolas at ndufresne.ca
Resolution|--- |INVALID
--- Comment #5 from Nicolas Dufresne (stormer) <nicolas at ndufresne.ca> ---
(In reply to Hyunil Park from comment #3)
> I tried test.
> The result is that waylandsink is working with internal display handle.
> I only get wl_surface from external window.
> I don't set gst_wayland_sink_set_display_from_context() to get display
>
> the patch is need to below line .. :)
> sorry, and thank you.
>
> if (handle) {
> if (G_LIKELY (gst_wayland_sink_find_display (sink))) {
> /* we cannot use our own display with an external window handle */
> if (G_UNLIKELY (sink->display->own_display)) {
> GST_ELEMENT_WARNING (sink, RESOURCE, OPEN_READ_WRITE,
> ("Application did not provide a wayland display handle"),
> ("Now waylandsink use internal display handle "
> "which is created ourselves. Consider providing a "
> "display handle from your application with GstContext"));
> + sink->window = gst_wl_window_new_in_surface (sink->display, surface);
> } else {
> sink->window = gst_wl_window_new_in_surface (sink->display, surface);
> }
> } else {
> GST_ERROR_OBJECT (sink, "Failed to find display handle, "
> "ignoring window handle");
> }
> }
That patch is incorrect, if that was correct the proper patch would be to
remove own_display path, as it would not matter any-more. As Daniel state, it
should matters (unless you have special code in your compositor, but that would
not be portable).
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list