[vlc-devel] commit: signals: exit properly ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 31 17:59:28 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 18:58:21 2008 +0300| [ca996f1791eab14f411419d4048dd501eda3f715]
signals: exit properly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ca996f1791eab14f411419d4048dd501eda3f715
---
modules/control/signals.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/control/signals.c b/modules/control/signals.c
index 5180aa7..b66ba49 100644
--- a/modules/control/signals.c
+++ b/modules/control/signals.c
@@ -126,8 +126,10 @@ static void Run (intf_thread_t *obj)
intf_sys_t *p_sys = obj->p_sys;
vlc_object_lock (obj);
- do
+ while (vlc_object_alive (obj))
{
+ vlc_object_wait (obj);
+
switch (p_sys->signum)
{
case SIGINT:
@@ -139,7 +141,6 @@ static void Run (intf_thread_t *obj)
goto out;
}
}
- while (!vlc_object_wait (obj));
out:
vlc_object_unlock (obj);
More information about the vlc-devel
mailing list