From: gb Date: Thu, 29 Apr 2010 09:35:54 +0000 (+0000) Subject: Prefer profile from codec-data if any was found there. X-Git-Tag: accepted/trunk/20120822.173359~504 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4350de601b624cfb9aa5d819b4f372ea63827937;p=profile%2Fivi%2Fgstreamer-vaapi.git Prefer profile from codec-data if any was found there. --- 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