android gst_element_set_state hangs
Dimitrios Katsaros
patcherwork at gmail.com
Wed Mar 22 10:17:52 UTC 2017
I have no android experience but in c, gst_element_set_state has a timeout
parameter. If you set it to 0 it should just issue the operation without
causing the calling thread to hang.
dmt
On Wed, Mar 22, 2017 at 4:47 AM, Jesse <zhangxh2000 at 126.com> wrote:
> Hello,everyone!
>
> I'm writing android app to play online video(rtmp live video),when the
> network is bad(maybe the router disconnected from internet), I call
> gst_element_set_state (data->pipeline, GST_STATE_PLAYING) on android UI
> thread and it will hangs about 20 seconds, this is not allowed on android
> because it will freeze
> the app.so I need to call gst_element_set_state on a separated thread. I
> want to know if there is such a thread in GStreamer or I need to create it
> myself? what is the best practice?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.
> n4.nabble.com/android-gst-element-set-state-hangs-tp4682329.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170322/b7355ac8/attachment.html>
More information about the gstreamer-devel
mailing list