mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
winks: only try to change state when actually open
This commit is contained in:
parent
1f6a6d2430
commit
a5beb0b8ff
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue