After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 730782 - glimagesink: cannot create window and stalls
glimagesink: cannot create window and stalls
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.3.2
Other Windows
: Normal normal
: 1.3.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-27 04:31 UTC by comicfans44
Modified: 2014-05-27 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description comicfans44 2014-05-27 04:31:41 UTC
I compiled gstreamer (1.3.1/1.3.2) with MinGW 4.8.2 (mingw-w64 i686-posix-dwarf-rev3) and gstreamer-win-1.2.4.1(gstreamer file removed, dependency such as glib reserved ) and try to use gl plugin , 
gst-launch-1.0 videotestsrc ! glimagesink 
but window does not create

,with GST_DEBUG, log shows last here:
:01:05.378129490  4124   057777A8 INFO               glconvert gstglcolorconver
.c:944:_init_convert: Initializing color conversion from I420 to RGBA

gdb shows backtrace as follows:

thread 6:
...
g_cond_wait
gst_gl_window_default_send_message
gst_gl_context_thread_add
gst_gl_context_gen_shader(vert_src="attribute vec4 a_position; attraibutethrea")
_init_convert
_gst_gl_context_thread_run_generic
_run_message_sync
_run_message
...

thread 5:
...
g_cond_wait
gst_gl_window_default_send_message
gst_gl_context_thread_add ( func=_do_convert)
_gst_gl_color_convert_perform_unlocked
gst_gl_color_convert_perform
_upload_memory
gst_gl_upload_perform_with_buffer
gst_glimagesink_sink_prepare
...

I also compiled gst-plugins-gl with gstreamer-win-1.2.4.1, everything works.
Comment 1 comicfans44 2014-05-27 10:14:52 UTC
with some compile and try, I found just after this commit:

95abfda1399bcddbee345d4542e857d743965477
gl: add colorconvert object that converts between color spaces/formats

opengl window can not be created
Comment 2 Nicolas Dufresne (ndufresne) 2014-05-27 13:13:36 UTC
Would it be possible to provide a trace, e.g. with GST_DEBUG_="3,gl*:7" ?
Comment 3 Matthew Waters (ystreet00) 2014-05-27 14:58:45 UTC
commit 3ddcec8062ca1b69fffed2f592bdd96d8ebf5a87
Author: Matthew Waters <ystreet00@gmail.com>
Date:   Wed May 28 00:56:05 2014 +1000

    gl/win32: make send_message reentrant
    
    I could not find a comparable win32API function so keep the running
    thread pointer to compare against.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730782