<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1503132697176_4016">Hi all,</div><div id="yui_3_16_0_ym19_1_1503132697176_4030"><br></div><div id="yui_3_16_0_ym19_1_1503132697176_4028">I'm using Gstreamer 1.0 within Python (running on Windows 7).</div><div id="yui_3_16_0_ym19_1_1503132697176_4049"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4065">I was wondering if it's possible to "catch" Gstreamer errors in my Python code. I tried a few things but wasn't successful. Sorry if it's a silly question but I have not found any working tip on the net...</div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4067"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4114">More specifically, if I build a pipeline with a "filesrc" element looking for a file that does not exist, my code will run forever without any notice. I tried to look at the bus, but I don't get any other message than "state_changed" (no error appears in the bus). The only way I can see that there's actually a problem is by setting the environment variable GST_DEBUG to 3, in which case a "No Such File" message is printed out by GStreamer.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4124"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4199">So, at this point, the only way I see would be to set the environment variable to 3 (which probably slows down GStreamer) and intercept the stdout... but I don't think that's a really neat solution. Is there a "good" way to catch these errors?</div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4204"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4202">Thanks,</div><div dir="ltr" id="yui_3_16_0_ym19_1_1503132697176_4203">Seb.<br></div></div></body></html>