summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2014-10-17 22:23:27 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-10-21 10:52:00 +0200
commit0ee384b251ae6ee4ac18210f3a0555898543de5f (patch)
tree7eb368496186b083adf670fcd47837c6491842fc /tests
parent1131db8c1f6b096dfa9737e2fb3cc7f904104b1b (diff)
rtpmux: Don't set PROXY_CAPS flag on the src pad
rtpmux behaves like a funnel in that it forwards whatever upstream is sending buffers. So setting proxy caps doesn't make sense as the upstream don't have to have compatible caps, thus resulting in an empty caps set as a result of a caps query. Instead set fixed caps just as funnel does. https://bugzilla.gnome.org/show_bug.cgi?id=738722
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/rtpmux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/check/elements/rtpmux.c b/tests/check/elements/rtpmux.c
index 6f316f109..11ba9794b 100644
--- a/tests/check/elements/rtpmux.c
+++ b/tests/check/elements/rtpmux.c
@@ -161,6 +161,10 @@ test_basic (const gchar * elem_name, const gchar * sink2, int count,
"seqnum-offset", G_TYPE_UINT, 56, "timestamp-offset", G_TYPE_UINT, 57,
"ssrc", G_TYPE_UINT, 66, NULL);
fail_unless (gst_pad_set_caps (src1, caps));
+ gst_caps_unref (caps);
+
+ caps = gst_pad_peer_query_caps (sink, NULL);
+ fail_if (gst_caps_is_empty (caps));
gst_segment_init (&segment, GST_FORMAT_TIME);
segment.start = 100000;