[vlc-devel] [PATCH 3.x 0/2] RFC: libvlc_media_player: add async stop

Rémi Denis-Courmont remi at remlab.net
Mon Oct 19 16:29:42 CEST 2020


Le maanantaina 19. lokakuuta 2020, 17.07.35 EEST Thomas Guillem a écrit :
> I don't think the current libvlc_media_player_stop() is usable since it
> is blocking. VLC ports usually call it from background threads, but it
> lead to deadlocks when the mainthread is calling libvlc_media_player getter
> functions.

liblvc_media_player_stop() is inconvenient for sure, but I don't exactly 
follow how it would be unusable. From what I have seen, deadlocks are usually 
caused by threading mistakes in applications. In particular, if there is a 
deadlock, how come libvlc_media_player_release() is not exhibiting the same 
problem?

If it's really necessary to update LibVLC 3.x, then that's that, but you're a 
bit light on details here, IMO.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list