<div dir="ltr"><div>Using</div><div><br></div><div>GStreamer 1.2.4 and GLib v2.40.0<br></div><div><br></div><div>I recently started to systematically get the following error:</div><div><br></div>GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Invalid argument.  Aborting.<br><div><br></div><div>[I preliminary guess it started when I switched from ximagesink to vaapisink, </div><div>but this remains to be investigated]</div><div><br></div><div>That does not come from my code and looks like a programming error. Sure I use a few threads, but those are initialized in the very beginning and run as infinite loops, nothing fancy.</div><div><br></div><div>Apparently, it's a long-standing issue. There are many reports, but they don't explain nor fix the issue.</div><div><br></div><div>Is it:</div><div><br></div><div>1. my misuse of GStreamer and GLib, or</div><div>2. GStreamer's misuse of GLib,</div><div>3. GLib's internal programming error</div><div><br></div><div>Any ideas/suggestions?</div></div>