Commit 22eda20b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

messages: disable cancellation

vlc_rwlock_rdlock() may be a cancellation point.

See also 446703fadbff12ad8bd70255e56c978446a564e6.
parent 9b0868ac
...@@ -120,9 +120,11 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module, ...@@ -120,9 +120,11 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
#endif #endif
if (priv) { if (priv) {
int canc = vlc_savecancel ();
vlc_rwlock_rdlock (&priv->log.lock); vlc_rwlock_rdlock (&priv->log.lock);
priv->log.cb (priv->log.opaque, type, &msg, format, args); priv->log.cb (priv->log.opaque, type, &msg, format, args);
vlc_rwlock_unlock (&priv->log.lock); vlc_rwlock_unlock (&priv->log.lock);
vlc_restorecancel (canc);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment