summaryrefslogtreecommitdiff
path: root/src/sydra.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-01 23:32:16 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-01 23:32:16 +0200
commitece8ac69cc5719e1e814c60747ea81cd535ac497 (patch)
tree42bf680a1e6a515a037a43f8a78419c30f95ee87 /src/sydra.c
parentsending remove client command when closed (diff)
sydra create bin now lets the caller control wheter to create ghost pads or not
Diffstat (limited to 'src/sydra.c')
-rw-r--r--src/sydra.c78
1 files changed, 39 insertions, 39 deletions
diff --git a/src/sydra.c b/src/sydra.c
index 9eed676..9201ab4 100644
--- a/src/sydra.c
+++ b/src/sydra.c
@@ -118,46 +118,46 @@ 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));
+ /* log_printf(DEBUG, "unkonwn message %s from %s", GST_MESSAGE_TYPE_NAME(msg), GST_MESSAGE_SRC_NAME(msg)); */
return TRUE;
}
return TRUE;