mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +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,6 +227,7 @@ gst_ks_clock_close_unlocked (GstKsClock * self)
|
||||||
GST_KS_CLOCK_LOCK ();
|
GST_KS_CLOCK_LOCK ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (priv->open)
|
||||||
gst_ks_clock_set_state_unlocked (self, KSSTATE_STOP);
|
gst_ks_clock_set_state_unlocked (self, KSSTATE_STOP);
|
||||||
|
|
||||||
if (ks_is_valid_handle (priv->clock_handle)) {
|
if (ks_is_valid_handle (priv->clock_handle)) {
|
||||||
|
|
Loading…
Reference in a new issue