diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp index 3b97c2ec71..b45d9c50d4 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11decoder.cpp @@ -1661,6 +1661,11 @@ gst_d3d11_decoder_negotiate (GstD3D11Decoder * decoder, info = &decoder->output_info; input_state = decoder->input_state; + if (!decoder->configured) { + GST_WARNING_OBJECT (videodec, "Decoder is not configured"); + return FALSE; + } + alternate_interlaced = (GST_VIDEO_INFO_INTERLACE_MODE (info) == GST_VIDEO_INTERLACE_MODE_ALTERNATE);