summaryrefslogtreecommitdiffstats
path: root/ext/jack/gstjack.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/jack/gstjack.c')
-rw-r--r--ext/jack/gstjack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/jack/gstjack.c b/ext/jack/gstjack.c
index 4a987ae1..a43c6707 100644
--- a/ext/jack/gstjack.c
+++ b/ext/jack/gstjack.c
@@ -392,7 +392,7 @@ gst_jack_change_state (GstElement *element)
l = this->pads;
while (l) {
pad = GST_JACK_PAD (l);
- caps = gst_pad_get_caps (pad->pad);
+ caps = gst_caps_copy (gst_pad_get_negotiated_caps (pad->pad));
gst_caps_set_simple (caps,
"rate", G_TYPE_INT, (int)this->bin->rate,
"buffer-frames", G_TYPE_INT, (gint)this->bin->nframes,