Commit 6b4179fd authored by Olivier Crete's avatar Olivier Crete

Don't try to destroy NULL idle source

darcs-hash:20080425200200-3e2dc-8fe73880fa4b42e25ebbac1ea43c6fb8fd3a84f5.gz
parent e9a7c72f
...@@ -239,7 +239,8 @@ gst_nice_src_unlock_stop (GstBaseSrc *src) ...@@ -239,7 +239,8 @@ gst_nice_src_unlock_stop (GstBaseSrc *src)
GST_OBJECT_LOCK (src); GST_OBJECT_LOCK (src);
nicesrc->unlocked = FALSE; nicesrc->unlocked = FALSE;
g_source_destroy (nicesrc->idle_source); if (nicesrc->idle_source)
g_source_destroy (nicesrc->idle_source);
nicesrc->idle_source = NULL; nicesrc->idle_source = NULL;
GST_OBJECT_UNLOCK (src); GST_OBJECT_UNLOCK (src);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment