Gstreamer hangs application for 2 minutes on first usage of nativePlay or nativePause
Matthew Ruth
mruth at sbimagingsystems.com
Thu Feb 4 12:38:13 PST 2016
I'll enable the debug logs and see if Android Studio can pick up anything, but since it's hanging the app I'm not sure if it'll able to run the log statements properly. Moreso, I know it's on the call to nativePlay() because when I comment that line out it runs very smoothly, unless it's the case that the nativePlay() call is actually calling nativeInit() first?
________________________________________
From: gstreamer-android [gstreamer-android-bounces at lists.freedesktop.org] on behalf of Sebastian Dröge [sebastian at centricular.com]
Sent: Tuesday, February 02, 2016 3:48 PM
To: Discussions about GStreamer on Android
Subject: Re: Gstreamer hangs application for 2 minutes on first usage of nativePlay or nativePause
On Di, 2016-02-02 at 23:28 +0000, Matthew Ruth wrote:
> As the title states, I have a gstreamer application that is working
> on Android Studio. I'm using a Gstreamer pipeline to stream video
> wirelessly, and it works well each time except for the first time I
> call one of the native functions nativePlay or nativePause. I thought
> it had to do with actually initializing Gstreamer but I see that
> Gstreamer is initialized for me before onResume, so it should be
> initialized before I attempt to call these functions.
>
> My question is, what is it about the first function call of
> nativePlay() or nativePause() that is hanging my app for 2 minutes
> (Skipping 7,000 frames of video stream), but when it finishes and I
> try it again it works perfectly?
>
> Also, more importantly, how can I circumvent that wait time?
There should be no waiting time to begin with :) You'll have to debug
what exactly it's doing in that time, it shouldn't happen.
I would start by enabling debug logs in GStreamer and check where it
waits all the time. And are you sure it's nativePlay() and not
GStreamer.init()?
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
More information about the gstreamer-android
mailing list