From 1b52aca7eaab174fbb7f730c2cc57ea28d52524d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 4 Jul 2012 10:12:43 +0200 Subject: [PATCH] memory: small cleanup --- gst/gstmemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstmemory.c b/gst/gstmemory.c index afe68d9c3a..314c95fdad 100644 --- a/gst/gstmemory.c +++ b/gst/gstmemory.c @@ -580,7 +580,7 @@ gst_memory_unlock (GstMemory * mem, GstLockFlags flags) if (access_mode & GST_LOCK_FLAG_EXCLUSIVE) { /* shared counter */ g_return_if_fail (state >= SHARE_ONE); - newstate = state - SHARE_ONE; + newstate -= SHARE_ONE; access_mode &= ~GST_LOCK_FLAG_EXCLUSIVE; }