diff options
author | Wim Taymans <wtaymans@redhat.com> | 2015-12-04 12:25:11 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2015-12-04 12:25:11 +0100 |
commit | 1da5a3ab66ab73b44a15d7e76a171522965054e3 (patch) | |
tree | 8cb87b92288228f761baa680d7e06be9f3fc98b3 | |
parent | d34aaf9e9b9c1a520f496812bf8a5ca54672a6d3 (diff) |
multisocketsink: let downstream know we support metadata
Let downstream know that we support GstNetControlMessage metadata API.
-rw-r--r-- | gst/tcp/gstmultisocketsink.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gst/tcp/gstmultisocketsink.c b/gst/tcp/gstmultisocketsink.c index 489cba289..052efe40e 100644 --- a/gst/tcp/gstmultisocketsink.c +++ b/gst/tcp/gstmultisocketsink.c @@ -190,6 +190,9 @@ static gboolean gst_multi_socket_sink_socket_condition (GstMultiSinkHandle static gboolean gst_multi_socket_sink_unlock (GstBaseSink * bsink); static gboolean gst_multi_socket_sink_unlock_stop (GstBaseSink * bsink); +static gboolean gst_multi_socket_sink_propose_allocation (GstBaseSink * bsink, + GstQuery * query); + static void gst_multi_socket_sink_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_multi_socket_sink_get_property (GObject * object, guint prop_id, @@ -357,6 +360,8 @@ gst_multi_socket_sink_class_init (GstMultiSocketSinkClass * klass) gstbasesink_class->unlock = GST_DEBUG_FUNCPTR (gst_multi_socket_sink_unlock); gstbasesink_class->unlock_stop = GST_DEBUG_FUNCPTR (gst_multi_socket_sink_unlock_stop); + gstbasesink_class->propose_allocation = + GST_DEBUG_FUNCPTR (gst_multi_socket_sink_propose_allocation); klass->add = GST_DEBUG_FUNCPTR (gst_multi_socket_sink_add); klass->add_full = GST_DEBUG_FUNCPTR (gst_multi_socket_sink_add_full); @@ -1192,3 +1197,13 @@ gst_multi_socket_sink_unlock_stop (GstBaseSink * bsink) return TRUE; } + +static gboolean +gst_multi_socket_sink_propose_allocation (GstBaseSink * bsink, GstQuery * query) +{ + /* we support some meta */ + gst_query_add_allocation_meta (query, GST_NET_CONTROL_MESSAGE_META_API_TYPE, + NULL); + + return TRUE; +} |