[vlc-devel] [PATCH] -- vout_subpicture deadlock issue

brezhoneg1 brezhoneg1 at yahoo.fr
Sun Dec 7 16:06:21 CET 2008


This patch corrects a bug which was made visible thanks to the following
commit :
http://git.videolan.org/?p=vlc.git;a=commit;h=4961a425c3d71ef817943b5326
bb0d8ab4701575 (a vlc_assert_locked( &p_sys->lock ) had been added).

the "SubFilterAllocationClean" function obviously does not hold a lock
and yet set the b_lock parameter of SpuCleanChannel to true. This was
tested in at least two situations:

- see trac item https://trac.videolan.org/vlc/ticket/2281
- setting a new media for a media_player (libvlc api) now raises this
deadlock error too.

Setting this parameter to false solves these two problems.
(Yet, are there situations where it does hold the lock?, if so, deeper
debugging work has to be done )

Erwan10
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Change-lock-status-from-true-to-false-in-SubFilterAl.patch
Type: application/octet-stream
Size: 850 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20081207/2263fb12/attachment.obj>


More information about the vlc-devel mailing list