diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 08967dd35e..c59a3c2eef 100644 --- a/ext/x264/gstx264enc.c +++ b/ext/x264/gstx264enc.c @@ -1565,7 +1565,7 @@ gst_x264_enc_sink_set_caps (GstPad * pad, GstCaps * caps) } allowed_caps = gst_caps_make_writable (allowed_caps); - gst_pad_fixate_caps (encoder->srcpad, allowed_caps); + gst_caps_fixate (allowed_caps); s = gst_caps_get_structure (allowed_caps, 0); profile = gst_structure_get_string (s, "profile");