summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-10-15 18:18:36 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2015-10-20 12:32:44 +0200
commit361f55be31b1e5fdb01fd5eac9e3ccd584766f8a (patch)
tree5b66890a1ca4f376001adc3a7ca2ec697fe79286
parent6d9f31e305d2c395bafd11c07d5a015f92bcd1b8 (diff)
downloadgst-vaapi-361f55be31b1e5fdb01fd5eac9e3ccd584766f8a.tar.gz
vaapidecode: decide allocation doesn't update srccaps
The received caps query will bring the already negotiated caps, so they are not expected to change. This patch removes this verification which is dead code path. Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> https://bugzilla.gnome.org/show_bug.cgi?id=756686
-rw-r--r--gst/vaapi/gstvaapidecode.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c
index 9835fbee..f142b0ab 100644
--- a/gst/vaapi/gstvaapidecode.c
+++ b/gst/vaapi/gstvaapidecode.c
@@ -575,7 +575,6 @@ gst_vaapidecode_decide_allocation (GstVideoDecoder * vdec, GstQuery * query)
{
GstVaapiDecode *const decode = GST_VAAPIDECODE (vdec);
GstCaps *caps = NULL;
- GstVideoCodecState *state;
gst_query_parse_allocation (query, &caps, NULL);
decode->has_texture_upload_meta = FALSE;
@@ -587,12 +586,6 @@ gst_vaapidecode_decide_allocation (GstVideoDecoder * vdec, GstQuery * query)
GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META);
#endif
- /* Update src caps if feature is not handled downstream */
- state = gst_video_decoder_get_output_state (vdec);
- if (!gst_caps_is_always_compatible (caps, state->caps))
- gst_vaapidecode_update_src_caps (decode);
- gst_video_codec_state_unref (state);
-
return gst_vaapi_plugin_base_decide_allocation (GST_VAAPI_PLUGIN_BASE (vdec),
query, 0);
}