[gst-devel] Problem with g_object_set
René Stadler
mail at renestadler.de
Wed Jan 17 21:02:30 CET 2007
Am Dienstag, den 16.01.2007, 20:12 +0100 schrieb Patrick Holthaus:
> Hey!
>
> > The chain function is executed in the streaming thread. Could this be
> > the problem here? If I understand this correctly, you are calling into
> > the Java intepreter or something. Maybe it doesn't like that if the
> > call is coming from a thread it doesn't know about.
>
> This might be the reason. I have read that the env pointer is not valid in
> another thread. But how could i change it to use the thread that is created
> by the Java VM? (The jmf_GSTDataSource.c file)
>
> Greets
> Patrick
You can't, the processing is driven by GStreamer-owned threads. You
need some form of synchronization. E.g. for Python, one needs to grab
the GIL (global interpreter lock).
--
Regards,
René Stadler
More information about the gstreamer-devel
mailing list