Commit 36508e31 authored by Jonathan Matthew's avatar Jonathan Matthew 🥗
Browse files

xfade: use gst_pad_query_caps

parent 9e106d26
......@@ -1953,7 +1953,7 @@ stream_pad_added_cb (GstElement *decoder, GstPad *pad, RBXFadeStream *stream)
GstPad *vpad;
/* make sure this is an audio pad */
caps = gst_pad_get_current_caps (pad);
caps = gst_pad_query_caps (pad, NULL);
if (caps == NULL) {
caps = gst_pad_query_caps (pad, NULL);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment