Prefer profile from codec-data if any was found there.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Thu, 29 Apr 2010 09:35:54 +0000 (09:35 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:40 +0000 (12:55 +0200)
gst-libs/gst/vaapi/gstvaapiprofile.c

index e0c0892..c832a2b 100644 (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