Running two playbins in two threads

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Running two playbins in two threads

Sirius Wu
Hi,

I'm suspecting my HLS player based on Android tutorial 5 leaks memory. To overcome this issue, I come to the idea to start 2 threads each running its own playbin. While the first playbin is playing, the second one is standby with no URI set. When the first playbin has finished the playing, the main thread kills the first thread to release all the memory of first playbin, and set  the second playbin's URI. Then a new thread with its own playbin is created for the next movie.

Using two playbins at the same time because I want to reduce the waiting time between two movies.

Is this idea workable? Or these two playbins will compete for the same hardware resources so one will fail?

--
Sirius Wu

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel