Page 1 of 1

libvlc - stop()/release() takes too long on low speed HLS streams

Posted: 20 Jan 2020 09:20
by aarondib
Hi!

I am having too long stuck on libvlc.MediaMplayer.stop() or libvlc.MediaMplayer.release(), when playing HLS streams from low speed or unstable streaming servers.
Time period it takes to return from stop() or release() is from ~2 seconds up-to 3 minutes.
I can see that it stuck in:

Code: Select all

vlc / modules / demux / adaptive / http / Downloader.cpp
in method:

Code: Select all

void Downloader::cancel(HTTPChunkBufferedSource *source)
in line:

Code: Select all

vlc_mutex_lock(&lock);
it is called from:

Code: Select all

void HTTPConnectionManager::cancel(AbstractChunkSource *source)
Used vlc-android versions: 3.1.7, 3.2.2 and latest 3.2.x commits.

I was trying to use options:
--network-caching=100
--http-caching=100
--ipv4-timeout=100
--adaptive-use-access
--no-adaptive-use-access
--preparse-playlist=100
...

Nothing helped :(

Could someone help me to solve the issue or where should I search.

Regards

Re: libvlc - stop()/release() takes too long on low speed HLS streams

Posted: 20 Jan 2020 09:41
by mfkl
try a nightly (4+) build

Re: libvlc - stop()/release() takes too long on low speed HLS streams

Posted: 20 Jan 2020 11:17
by aarondib
Where can I get it?
libvlc 4.0 branch seems to be updated last 2 years ago.
Thanks!

Re: libvlc - stop()/release() takes too long on low speed HLS streams

Posted: 21 Jan 2020 10:24
by mfkl
https://nightlies.videolan.org/