ffmpegenc: Don't try to set caps to NULL

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=682736
This commit is contained in:
Sjoerd Simons 2012-08-26 18:17:17 +02:00 committed by Wim Taymans
parent 6d1203e5ab
commit ed1ea6f097

View file

@ -249,9 +249,6 @@ gst_ffmpegaudenc_setcaps (GstFFMpegAudEnc * ffmpegaudenc, GstCaps * caps)
if (ffmpegaudenc->opened) {
gst_ffmpeg_avcodec_close (ffmpegaudenc->context);
ffmpegaudenc->opened = FALSE;
/* fixed src caps;
* so clear src caps for proper (re-)negotiation */
gst_pad_set_caps (ffmpegaudenc->srcpad, NULL);
}
/* set defaults */