From: S. <ma...@re...> - 2007-01-17 20:03:29
|
Am Dienstag, den 16.01.2007, 20:12 +0100 schrieb Patrick Holthaus: > Hey! >=20 > > 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. >=20 > This might be the reason. I have read that the env pointer is not valid i= n > another thread. But how could i change it to use the thread that is creat= ed > by the Java VM? (The jmf_GSTDataSource.c file) >=20 > 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). --=20 Regards, Ren=C3=A9 Stadler |