diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index 4b343442fa..b6bedc2975 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -319,7 +319,7 @@ gst_ffmpegenc_get_possible_sizes (GstFFMpegEnc * ffmpegenc, GstPad * pad, GstCaps *intersect = NULL; guint i; - othercaps = gst_pad_peer_get_caps (ffmpegenc->srcpad, NULL); + othercaps = gst_pad_peer_query_caps (ffmpegenc->srcpad, NULL); if (!othercaps) return gst_caps_copy (caps);