diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-10-06 23:08:13 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-10-06 23:08:13 +0200 |
commit | 0cc548592de9611655f4c680d56ce73bcb38ab9a (patch) | |
tree | d9a4bca150e5b14922fbc8744d6825ce96a0a0af /src/sydra-rtp.c | |
parent | fixed 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.c | 12 |
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); |