GNOME Bugzilla – Bug 726637
eglglessinnk: unable to create EGL window on RPI
Last modified: 2014-05-26 09:27:24 UTC
The eglglessink is not working on RPI platform with branch gst-plugins-bad 0.10 branch. I get an error: Could not create window. I was testing with gst-launch-0.10 videotestsrc ! eglglessink
Created attachment 272282 [details] [review] Fix eglglessink RPI patch This patch allows to make eglglessink work on RPI
Created attachment 272369 [details] [review] Fix eglglessink RPI patch
Review of attachment 272369 [details] [review]: Patch is not correct. Also, I didn't quite get your reference to 1.0 in the commit message, the code in question is equivalent in both branches (although the actual window creation code might have changed, I didn't check). ::: ext/eglgles/gsteglglessink.c @@ +1120,3 @@ GST_INFO_OBJECT (eglglessink, "No window. Will attempt internal window creation"); + if(!gst_egl_adaptation_create_native_window(eglglessink->egl_context, width, height, &eglglessink->own_window_data)) { This is not correct. _create_window() will call gst_egl_adaptation_create_window() without needing any shortcuts if create_window prop is not FALSE. If you are not setting it to FALSE explicitly (default is TRUE IIRC) and the window creation code works with your setup, then the correct fix is elsewhere.
I'm sorry, but eglglessink has been removed from GStreamer and replaced with glimagesink. Additionally, GStreamer 0.10 is no longer maintained by the GStreamer community, which means patches are no longer accepted for that version. Thanks for reporting and taking the time to provide patches.
Dear Nicolas, Thank you for your answer. I cant see anywhere glimagesink in gst-plugins-bad. Concerning my patch, i was needing gstreamer 0.10 on RPI and unable to make it work correctly. That's why i proposed this patch. I dont think, i'm alone in this case. I'm ready to make a proper patch according ro Reynaldo, but Reynaldo could you precise, i dont get your point. Best regards.
glimagesink is in gst-plugins-bad 1.3 and newer, and eglglessink was removed there. It was only meant an iterim solution until glimagesink is ready. GStreamer 0.10 is no longer supported, and you should use at least 1.2. That version also has proper support for the RPi, and 1.3 even better RPi support. If there's still a problem in 1.2, please provide a patch against eglglessink from that version but please also try glimagesink from 1.3.
Thank you for your answer. I will use my patch locally. Best regards.