How to debug Gstreamer on Windows
Tim Müller
tim at centricular.com
Sat Mar 28 12:53:59 UTC 2020
On Thu, 2020-03-26 at 19:18 -0400, Erik Herz wrote:
Hi Erik,
> I have an app that runs on my Windows build machine but not on
> another windows machine.
>
> I get this error:
>
> gst_element_set_state() returns GST_STATE_CHANGE_FAILURE
>
> I suspect that I am missing a library.
>
> How can I debug what is happening?
>
> My App is QT-based.
First of all, there should (hopefully) be one or more error messages on
the pipeline's GstBus with details about the problem. So I'd recommend
you check those.
Secondly, you can run your app with GStreamer debug logging enabled,
either by setting the GST_DEBUG environment variable or by
programmatically doing something like:
gst_debug_set_threshold_from_string("*:WARN", TRUE)
or
gst_debug_set_default_threshold(GST_LEVEL_WARNING)
after gst_init().
If that doesn't show anything, try increasing the debug level to INFO
or DEBUG.
Cheers
Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list