summaryrefslogtreecommitdiff
path: root/gst/gstnicesink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/gstnicesink.c')
-rw-r--r--gst/gstnicesink.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/gst/gstnicesink.c b/gst/gstnicesink.c
index 80cca40..a6f099d 100644
--- a/gst/gstnicesink.c
+++ b/gst/gstnicesink.c
@@ -1,3 +1,4 @@
+
/*
* This file is part of the Nice GLib ICE library.
*
@@ -301,9 +302,15 @@ gst_nice_sink_set_property (
break;
case PROP_COMPONENT:
- GST_OBJECT_LOCK (sink);
- sink->component_id = g_value_get_uint (value);
- GST_OBJECT_UNLOCK (sink);
+ {
+ guint new_component_id = g_value_get_uint (value);
+ GST_OBJECT_LOCK (sink);
+ if (sink->component_id != new_component_id) {
+ sink->component_id = new_component_id;
+ g_cond_broadcast (&sink->writable_cond);
+ }
+ GST_OBJECT_UNLOCK (sink);
+ }
break;
default: