 gst-libs/gst/video/gstvideodecoder.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c
index c7e637d..e951c89 100644
--- a/gst-libs/gst/video/gstvideodecoder.c
+++ b/gst-libs/gst/video/gstvideodecoder.c
@@ -3630,7 +3630,6 @@ gst_video_decoder_allocate_output_frame (GstVideoDecoder *
   GstFlowReturn flow_ret;
   GstVideoCodecState *state;
   int num_bytes;
-  gboolean needs_reconfigure = FALSE;
 
   g_return_val_if_fail (decoder->priv->output_state, GST_FLOW_NOT_NEGOTIATED);
   g_return_val_if_fail (frame->output_buffer == NULL, GST_FLOW_ERROR);
@@ -3648,8 +3647,8 @@ gst_video_decoder_allocate_output_frame (GstVideoDecoder *
     goto error;
   }
 
-  needs_reconfigure = gst_pad_check_reconfigure (decoder->srcpad);
-  if (G_UNLIKELY (decoder->priv->output_state_changed || needs_reconfigure)) {
+  gst_pad_check_reconfigure (decoder->srcpad);
+  if (G_UNLIKELY (decoder->priv->output_state_changed)) {
     if (!gst_video_decoder_negotiate_unlocked (decoder)) {
       GST_DEBUG_OBJECT (decoder, "Failed to negotiate, fallback allocation");
       gst_pad_mark_reconfigure (decoder->srcpad);
