From 5128a1980bcb617fac12c648f300e633918c6267 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 11 Sep 2009 22:22:34 +0100 Subject: [PATCH] message: Disable restriction that structure changes are sink pads The structure_change message was originally emitted on source pads and then recently changed to be sink pads. This causes a failure in the gst-python testsuite. Disable the restriction so that the published behaviour is still allowed. --- gst/gstmessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstmessage.c b/gst/gstmessage.c index cf49920a53..6a896d64b6 100644 --- a/gst/gstmessage.c +++ b/gst/gstmessage.c @@ -711,7 +711,7 @@ gst_message_new_structure_change (GstObject * src, GstStructureChangeType type, GstStructure *structure; g_return_val_if_fail (GST_IS_PAD (src), NULL); - g_return_val_if_fail (GST_PAD_DIRECTION (src) == GST_PAD_SINK, NULL); + // g_return_val_if_fail (GST_PAD_DIRECTION (src) == GST_PAD_SINK, NULL); g_return_val_if_fail (GST_IS_ELEMENT (owner), NULL); structure = gst_structure_id_new (GST_QUARK (MESSAGE_STRUCTURE_CHANGE),