[Nice] [nice/master] Don't try to destroy NULL idle source
Olivier Crete
olivier.crete at collabora.co.uk
Wed Nov 5 14:01:08 PST 2008
darcs-hash:20080425200200-3e2dc-8fe73880fa4b42e25ebbac1ea43c6fb8fd3a84f5.gz
---
gst/gstnicesrc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c
index 6155a59..db3321f 100644
--- a/gst/gstnicesrc.c
+++ b/gst/gstnicesrc.c
@@ -239,7 +239,8 @@ gst_nice_src_unlock_stop (GstBaseSrc *src)
GST_OBJECT_LOCK (src);
nicesrc->unlocked = FALSE;
- g_source_destroy (nicesrc->idle_source);
+ if (nicesrc->idle_source)
+ g_source_destroy (nicesrc->idle_source);
nicesrc->idle_source = NULL;
GST_OBJECT_UNLOCK (src);
--
1.5.6.5
More information about the Nice
mailing list