vaapidecode: log negotiated src/sink caps

This commit is contained in:
Víctor Manuel Jáquez Leal 2015-02-12 12:31:57 +01:00 committed by Víctor Manuel Jáquez Leal
parent 0df96e1c3b
commit e2d60c83a6

View file

@ -165,6 +165,7 @@ gst_vaapi_decode_input_state_replace (GstVaapiDecode * decode,
static inline gboolean
gst_vaapidecode_update_sink_caps (GstVaapiDecode * decode, GstCaps * caps)
{
GST_INFO_OBJECT (decode, "new sink caps = %" GST_PTR_FORMAT, caps);
gst_caps_replace (&decode->sinkpad_caps, caps);
return TRUE;
}
@ -223,6 +224,7 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
state->caps = gst_video_info_to_caps (vi);
if (features)
gst_caps_set_features (state->caps, 0, features);
GST_INFO_OBJECT (decode, "new src caps = %" GST_PTR_FORMAT, state->caps);
gst_caps_replace (&decode->srcpad_caps, state->caps);
gst_video_codec_state_unref (state);