]> git.sesse.net Git - vlc/commit
Don't wait for signal if the object is already dying.
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 22 Oct 2007 17:35:27 +0000 (17:35 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 22 Oct 2007 17:35:27 +0000 (17:35 +0000)
commit26d39a90abbfddb9e793a1a92efb3e9fe560dd9b
treeb0d30ce29c67798eb3b79365587f5607379b6049
parentdbded71fbba7011b19f5839dd7e69559549de640
Don't wait for signal if the object is already dying.
Better solution would be to make sure interface threads lock their object ALL THE TIME, except when waiting on its condition variable, so we do never "loose" condition signals. However, I am not sure if this would not result in a deadlock, should the interface need to lock another object (typically, playlist, input and/or vout).  Also, we would need to have all thread call vlc_thread_ready(), otherwise, we could also miss the signal if it happens right after the thread is created => this requires fixing every interface, except those that don't have a pf_run.
include/vlc_objects.h