Gstreamer hangs application for 2 minutes on first usage of nativePlay or nativePause

Sebastian Dröge sebastian at centricular.com
Tue Feb 2 15:48:25 PST 2016


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

-------------- 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/20160203/d7bdaf24/attachment.sig>


More information about the gstreamer-android mailing list