diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-09-27 20:32:16 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-09-27 20:32:16 +0200 |
commit | 4fb514de0b917e1bd8757ef456568f26caf0bcd5 (patch) | |
tree | 53d79da47abdaf51a8ec3e2840337a492c37714b /src/sydra.c | |
parent | name refactoring (diff) |
RTP bin SSRC callbacks
Diffstat (limited to 'src/sydra.c')
-rw-r--r-- | src/sydra.c | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/sydra.c b/src/sydra.c index ca48724..22f0157 100644 --- a/src/sydra.c +++ b/src/sydra.c @@ -118,44 +118,44 @@ static gboolean bus_call(GstBus *bus, GstMessage *msg, gpointer data) (msg->src ? GST_OBJECT_NAME(msg->src) : "NULL"), running_time, stream_time, timestamp, duration); break; } - /* case GST_MESSAGE_STREAM_STATUS: */ - /* { */ - /* GstStreamStatusType type; */ - /* GstElement *owner; */ - /* const GValue *val; */ - /* gchar *path, *ownerstr; */ - /* GstTask *task = NULL; */ - - /* gst_message_parse_stream_status (msg, &type, &owner); */ - /* val = gst_message_get_stream_status_object (msg); */ - - /* path = gst_object_get_path_string (GST_MESSAGE_SRC (msg)); */ - /* ownerstr = gst_object_get_path_string (GST_OBJECT (owner)); */ - /* log_printf(DEBUG,"Recevied Stream-Status message type: %d, source: %s, owner: %s, object: type %s, value %p", */ - /* type, path, ownerstr, G_VALUE_TYPE_NAME (val), g_value_get_object (val)); */ - /* g_free (path); */ - /* g_free (ownerstr); */ - - /* /\* see if we know how to deal with this object *\/ */ - /* if (G_VALUE_TYPE (val) == GST_TYPE_TASK) { */ - /* task = g_value_get_object (val); */ - /* } */ - - /* switch (type) { */ - /* case GST_STREAM_STATUS_TYPE_CREATE: */ - /* log_printf(DEBUG," created task %p", task); */ - /* break; */ - /* case GST_STREAM_STATUS_TYPE_ENTER: */ - /* /\* log_printf(DEBUG," raising task priority"); *\/ */ - /* /\* setpriority (PRIO_PROCESS, 0, -10); *\/ */ - /* break; */ - /* case GST_STREAM_STATUS_TYPE_LEAVE: */ - /* break; */ - /* default: */ - /* break; */ - /* } */ - /* break; */ - /* } */ + case GST_MESSAGE_STREAM_STATUS: + { + GstStreamStatusType type; + GstElement *owner; + const GValue *val; + gchar *path, *ownerstr; + GstTask *task = NULL; + + gst_message_parse_stream_status (msg, &type, &owner); + val = gst_message_get_stream_status_object (msg); + + path = gst_object_get_path_string (GST_MESSAGE_SRC (msg)); + ownerstr = gst_object_get_path_string (GST_OBJECT (owner)); + log_printf(DEBUG,"Recevied Stream-Status message type: %d, source: %s, owner: %s, object: type %s, value %p", + type, path, ownerstr, G_VALUE_TYPE_NAME (val), g_value_get_object (val)); + g_free (path); + g_free (ownerstr); + + /* see if we know how to deal with this object */ + if (G_VALUE_TYPE (val) == GST_TYPE_TASK) { + task = g_value_get_object (val); + } + + switch (type) { + case GST_STREAM_STATUS_TYPE_CREATE: + log_printf(DEBUG," created task %p", task); + break; + case GST_STREAM_STATUS_TYPE_ENTER: + /* log_printf(DEBUG," raising task priority"); */ + /* setpriority (PRIO_PROCESS, 0, -10); */ + break; + case GST_STREAM_STATUS_TYPE_LEAVE: + break; + default: + break; + } + break; + } default: log_printf(DEBUG, "unkonwn message %s from %s", GST_MESSAGE_TYPE_NAME(msg), GST_MESSAGE_SRC_NAME(msg)); return TRUE; |