From a5beb0b8ff0d6324d3de8f34fa9eadf5222419cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 31 Aug 2009 19:23:40 +0200 Subject: [PATCH] winks: only try to change state when actually open --- sys/winks/gstksclock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/winks/gstksclock.c b/sys/winks/gstksclock.c index 7e6d8e904d..6ed642ec02 100644 --- a/sys/winks/gstksclock.c +++ b/sys/winks/gstksclock.c @@ -227,7 +227,8 @@ gst_ks_clock_close_unlocked (GstKsClock * self) GST_KS_CLOCK_LOCK (); } - gst_ks_clock_set_state_unlocked (self, KSSTATE_STOP); + if (priv->open) + gst_ks_clock_set_state_unlocked (self, KSSTATE_STOP); if (ks_is_valid_handle (priv->clock_handle)) { CloseHandle (priv->clock_handle);