From e42cc965668b92ec5e4f062124f9c50e1da65fcd Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Sat, 21 Jun 2014 18:29:32 +0200 Subject: avvidenc: Make sure to fixate caps before setting them on the pad After the recent addition of negotiation support for MPEG4 part 2 profiles via caps it can happen that the generated caps at this point still contain multiple profiles. For example if downstream does not care. Just fixate anything here and use those caps. --- ext/libav/gstavvidenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index b2c2458..95b0a0a 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -463,7 +463,7 @@ gst_ffmpegvidenc_set_format (GstVideoEncoder * encoder, gst_caps_unref (icaps); goto unsupported_codec; } - icaps = gst_caps_truncate (icaps); + icaps = gst_caps_fixate (icaps); GST_DEBUG_OBJECT (ffmpegenc, "codec flags 0x%08x", ffmpegenc->context->flags); -- cgit v1.2.3