[Pkg-gstreamer-commits] [gstreamer-vaapi] 161/176: context: fix get_attribute() value result.

Vincent Cheng vcheng at moszumanska.debian.org
Tue Jun 3 08:09:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

vcheng pushed a commit to branch upstream
in repository gstreamer-vaapi.

commit e3ed05bc525ce331b3a98d1248a5127fa81a76f0
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date:   Thu Jan 23 11:44:12 2014 +0100

    context: fix get_attribute() value result.
    
    Unknown attributes, or attributes that are not supported for the given
    profile/entrypoint pair have a return value of VA_ATTRIB_NOT_SUPPORTED.
    So, return failure in this case.
---
 gst-libs/gst/vaapi/gstvaapicontext.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gst-libs/gst/vaapi/gstvaapicontext.c b/gst-libs/gst/vaapi/gstvaapicontext.c
index 8651e90..7524b51 100644
--- a/gst-libs/gst/vaapi/gstvaapicontext.c
+++ b/gst-libs/gst/vaapi/gstvaapicontext.c
@@ -425,6 +425,8 @@ gst_vaapi_context_get_attribute (GstVaapiContext * context,
   GST_VAAPI_OBJECT_UNLOCK_DISPLAY (context);
   if (!vaapi_check_status (status, "vaGetConfigAttributes()"))
     return FALSE;
+  if (attrib.value == VA_ATTRIB_NOT_SUPPORTED)
+    return FALSE;
 
   if (out_value_ptr)
     *out_value_ptr = attrib.value;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gstreamer/gstreamer-vaapi.git



More information about the Pkg-gstreamer-commits mailing list