Gstreamer hangs application for 2 minutes on first usage of nativePlay or nativePause
Sebastian Dröge
sebastian at centricular.com
Fri Feb 5 00:56:11 CET 2016
On Do, 2016-02-04 at 23:49 +0000, Matthew Ruth wrote:
> I'm unable to redirect Gstreamer debug to logcat in Android Studio,
> even using "setenv("GST_DEBUG","GST_ELEMENT_*:7",NULL);" in c, and
> redirecting the device stderr to logcat through "adb shell setprop
> log.redirect-studio true", so I'm unable to access all gstreamer
> debug statements, however I do have GST_DEBUG() statements in my c
> code.
Use the C API instead of environment variables. When using the
environment variables, you need to set them before gst_init().
See gstreamer_android-1.0.c.in, it currently calls
gst_debug_set_default_threshold(). Change that to make the default
GST_LEVEL_DEBUG.
All GStreamer debug output will go to the Android log btw, not stderr.
Alternatively what would also be useful is getting a backtrace of the
threads that are busy while things are hanging. Use ndk-gdb for that.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20160205/a203a8ba/attachment.sig>
More information about the gstreamer-android
mailing list