[vlc-devel] VLC may become unresponsive if playlist looping is enabled

Teemu Ikonen kunteemu at gmail.com
Tue Mar 20 10:54:41 CET 2018


When playlist looping is enabled and user opens a video file that is
corrupted or codec not supported VLC becomes unresponsive and has to be
terminated via Task Manager.

It appears that the problem is in playlist thread.c that just calls Next
immediately after the video has stopped playing (input_dead flag is true)
disregarding if file was actually successfully played or not and thus it
tries again to play invalid file causing the busy loop.

Probably there is currently no way for mux/codec to communicate back that
file can not be played?

I was thinking fix could be event like INPUT_EVENT_CORRUPTED in addition to
existing INPUT_EVENT_DEAD that would allow playlist loop to detect failed
file and remove it from the playlist.

Thanks, Teemu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20180320/15fc632c/attachment.html>

More information about the vlc-devel mailing list