summaryrefslogtreecommitdiff
path: root/src/sydra-rtp.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-06 23:08:13 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-06 23:08:13 +0200
commit0cc548592de9611655f4c680d56ce73bcb38ab9a (patch)
treed9a4bca150e5b14922fbc8744d6825ce96a0a0af /src/sydra-rtp.c
parentfixed rtp reflector init (diff)
closing application when new SSRC shows up (although all depayloader are already connected)
closing application when session times out
Diffstat (limited to 'src/sydra-rtp.c')
-rw-r--r--src/sydra-rtp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sydra-rtp.c b/src/sydra-rtp.c
index de65e25..dc6c3c7 100644
--- a/src/sydra-rtp.c
+++ b/src/sydra-rtp.c
@@ -72,6 +72,18 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer data)
g_main_loop_quit(loop);
break;
}
+ case GST_MESSAGE_APPLICATION: {
+ log_printf(DEBUG, "Got Application Message!");
+ const GstStructure* ms = gst_message_get_structure(msg);
+ gboolean quit;
+ gst_structure_get_boolean(ms, "quit", &quit);
+ if(quit) {
+ const gchar* reason = gst_structure_get_string (ms, "reason");
+ log_printf(NOTICE, "closing due to message: %s", reason);
+ g_main_loop_quit(loop);
+ }
+ break;
+ }
case GST_MESSAGE_INFO: {
GError *info;
gst_message_parse_info(msg, &info, NULL);