[gst-devel] possible glimagesink bug - not thread safe?

Aulia Khamil selazer at gmail.com
Sun Jul 25 15:12:32 CEST 2010


I was running it on Windows Vista using latest GStreamer WinBuilds
0.10.6 (gstreamer-0.10.28, gst-plugins-base-0.10.28,
gst-plugins-gl-0.10.1) and Python 2.6.4.

As a temporary fix I replaced glimagesink with dshowvideosink - works fine.

Regards,
Aulia Khamil

2010/7/24 Julien Isorce <julien.isorce at gmail.com>:
> Hi,
>
> Right now I can't test your exact example on linux I guess ?
>
> But I have tested this one on Windows with no problems:
>
> --------------------------------
> import gobject
> import pygst
> pygst.require("0.10")
> print dir(pygst)
> import gst
>
> players = []
> for i in range(10):
>     players.append(gst.parse_launch("videotestsrc ! glimagesink"))
>
> for player in players:
>     player.set_state(gst.STATE_PLAYING)
>
> gobject.MainLoop().run()
> --------------------------------
>
> What's the exact version of your gstreamer (core/base/gl/python) ? Are you
> building it from git or ?
>
> Julien
>
>
> 2010/7/24 Aulia Khamil <selazer at gmail.com>
>>
>> Hello,
>>
>> Consider following Python code, which creates four simple pipelines at
>> the same time:
>>
>> import wx
>> import pygst
>> pygst.require("0.10")
>> import gst
>>
>> players = []
>> for i in range(4):
>>    players.append(gst.parse_launch("videotestsrc ! glimagesink"))
>>
>> for player in players:
>>    player.set_state(gst.STATE_PLAYING)
>>
>> app = wx.App(redirect=False)
>> frame = wx.Frame(None)
>> frame.Show()
>> app.MainLoop()
>>
>> This code crashes a lot with various errors:
>> - 0xc0000005 exceptions
>> - fatal flex scanner internal error--end of buffer missed
>> - (python.exe:2788): GstGLShader-WARNING **: Fragment Shader
>> compilation failed: ERROR: 0:1: 'float' : syntax error parse error
>>
>> Sometimes, however, it runs OK.
>>
>> To me it looks like some bug in glimagesink having something to do
>> with thread safety. Anyone have any ideas what might be the cause of
>> this strange behaviour and how to get rid of it?
>>
>> Regards,
>> Aulia Khamil




More information about the gstreamer-devel mailing list