Advertisement
vliaskov

set_window_handle on vaapisink

Sep 14th, 2015
161
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // video.sink is a vaapisink, video.x11_window is glXGetCurrentDrawable()
  2. video.video_overlay = GST_VIDEO_OVERLAY (video.sink);
  3. gst_video_overlay_set_window_handle (video.video_overlay,
  4. (guintptr) video.x11_window);
  5.  
  6.  
  7. Program exits with XLib error:
  8. X Error of failed request: BadAccess (attempt to access private resource denied)
  9. Major opcode of failed request: 2 (X_ChangeWindowAttributes)
  10. Serial number of failed request: 21
  11. Current serial number in output stream: 21
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement