Prefer profile from codec-data if any was found there.

This commit is contained in:
gb 2010-04-29 09:35:54 +00:00 committed by Gwenole Beauchesne
parent 1f4e67503c
commit 4350de601b

View file

@ -238,7 +238,7 @@ gst_vaapi_profile_from_caps(GstCaps *caps)
strcmp(profile_str, m->profile_str) == 0)
profile = best_profile;
}
else if (codec_data)
if (!profile)
profile = gst_vaapi_profile_from_codec_data(
GST_VAAPI_PROFILE_CODEC(m->profile),
codec_data