[Bug 791615] New: No events received if ButtonPressMask is set in XSelectInput for foreign window

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Dec 14 14:21:32 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=791615

            Bug ID: 791615
           Summary: No events received if ButtonPressMask is set in
                    XSelectInput for foreign window
    Classification: Platform
           Product: GStreamer
           Version: unspecified
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer-vaapi
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: valkov at yandex.ru
        QA Contact: gstreamer-bugs at lists.freedesktop.org
                CC: bsreerenj at gmail.com, vjaquez at igalia.com
     GNOME version: ---

Hi,
If you take an example "GstVideoOverlay and Qt" from 
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/GstVideoOverlay.html

and use vaapisink instead of xvimagesink
GstElement *sink = gst_element_factory_make ("vaapisink", NULL);

Nothing will be rendered/showed up.

It is related to gst_vaapisink_x11_pre_start_event_thread()

  static const int x11_event_mask = (KeyPressMask | KeyReleaseMask |
      ButtonPressMask | ButtonReleaseMask | PointerMotionMask |
      ExposureMask | StructureNotifyMask);

If ButtonPressMask is set for "foreign" (like in Qt example) window, no events
will be received in gst_vaapisink_x11_handle_events()

Is it really needed to request ButtonPress events for not internal windows?

-- 
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