When the decoder get linked further, it will receive a renegotiation
event from downstream. This case is not supported and should be ignored.
This fixes issues when this encoder is used inside an GstRtspServer
pipeline.
https://bugzilla.gnome.org/show_bug.cgi?id=796525
GST_DEBUG_OBJECT (self, "Negotiating %s profile and level.",
klass->codec_name);
+ /* Only renegotiate on upstream changes */
+ if (self->input_state)
+ return TRUE;
+
allowed_caps = gst_pad_get_allowed_caps (GST_VIDEO_ENCODER_SRC_PAD (encoder));
if (allowed_caps) {