summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/fsrtpconference/fs-rtp-stream.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index b2d59f2c..1ef6b2e8 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -826,6 +826,11 @@ _local_candidates_prepared (FsStreamTransmitter *stream_transmitter,
g_object_get (session, "conference", &conf, NULL);
+ if (!conf) {
+ g_object_unref (session);
+ return;
+ }
+
gst_element_post_message (conf,
gst_message_new_element (GST_OBJECT (conf),
gst_structure_new ("farstream-local-candidates-prepared",
@@ -853,6 +858,11 @@ _new_active_candidate_pair (
g_object_get (session, "conference", &conf, NULL);
+ if (!conf) {
+ g_object_unref (session);
+ return;
+ }
+
gst_element_post_message (conf,
gst_message_new_element (GST_OBJECT (conf),
gst_structure_new ("farstream-new-active-candidate-pair",
@@ -881,6 +891,11 @@ _new_local_candidate (
g_object_get (session, "conference", &conf, NULL);
+ if (!conf) {
+ g_object_unref (session);
+ return;
+ }
+
gst_element_post_message (conf,
gst_message_new_element (GST_OBJECT (conf),
gst_structure_new ("farstream-new-local-candidate",
@@ -929,6 +944,11 @@ _state_changed (FsStreamTransmitter *stream_transmitter,
g_object_get (session, "conference", &conf, NULL);
+ if (!conf) {
+ g_object_unref (session);
+ return;
+ }
+
gst_element_post_message (conf,
gst_message_new_element (GST_OBJECT (conf),
gst_structure_new ("farstream-component-state-changed",