memory: small cleanup

This commit is contained in:
Wim Taymans 2012-07-04 10:12:43 +02:00
parent 0ddb33bb4c
commit 1b52aca7ea

View file

@ -580,7 +580,7 @@ gst_memory_unlock (GstMemory * mem, GstLockFlags flags)
if (access_mode & GST_LOCK_FLAG_EXCLUSIVE) { if (access_mode & GST_LOCK_FLAG_EXCLUSIVE) {
/* shared counter */ /* shared counter */
g_return_if_fail (state >= SHARE_ONE); g_return_if_fail (state >= SHARE_ONE);
newstate = state - SHARE_ONE; newstate -= SHARE_ONE;
access_mode &= ~GST_LOCK_FLAG_EXCLUSIVE; access_mode &= ~GST_LOCK_FLAG_EXCLUSIVE;
} }