diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 74e9ce6257..0279ceff2f 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -469,10 +469,10 @@ gst_vaapidecode_negotiate (GstVaapiDecode * decode) return FALSE; if (!gst_vaapidecode_update_src_caps (decode)) return FALSE; - if (!gst_video_decoder_negotiate (vdec)) - return FALSE; if (!gst_vaapi_plugin_base_set_caps (plugin, NULL, decode->srcpad_caps)) return FALSE; + if (!gst_video_decoder_negotiate (vdec)) + return FALSE; return TRUE; }