From 4350de601b624cfb9aa5d819b4f372ea63827937 Mon Sep 17 00:00:00 2001 From: gb Date: Thu, 29 Apr 2010 09:35:54 +0000 Subject: [PATCH] Prefer profile from codec-data if any was found there. --- gst-libs/gst/vaapi/gstvaapiprofile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/vaapi/gstvaapiprofile.c b/gst-libs/gst/vaapi/gstvaapiprofile.c index e0c0892..c832a2b 100644 --- a/gst-libs/gst/vaapi/gstvaapiprofile.c +++ b/gst-libs/gst/vaapi/gstvaapiprofile.c @@ -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 -- 2.7.4