[Pkg-gstreamer-commits] [gstreamer-vaapi] 169/176: tests: test-filter: fix "deinterlace" option parse.

Vincent Cheng vcheng at moszumanska.debian.org
Tue Jun 3 08:09:38 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 e6fb4c1cdc727c8f737979995cf51ad12ba5887a
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date:   Mon Jan 20 14:16:56 2014 +0100

    tests: test-filter: fix "deinterlace" option parse.
    
    Default to GST_VAAPI_DEINTERLACE_METHOD_NONE if no "deinterlace" option
    string was provided, i.e. if it remained set to NULL.
---
 tests/test-filter.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/test-filter.c b/tests/test-filter.c
index 52452b3..8e19fab 100755
--- a/tests/test-filter.c
+++ b/tests/test-filter.c
@@ -296,7 +296,11 @@ parse_deinterlace(const gchar *str, GstVaapiDeinterlaceMethod *deinterlace_ptr)
 {
     g_return_val_if_fail(deinterlace_ptr != NULL, FALSE);
 
-    return str && parse_enum(str, GST_VAAPI_TYPE_DEINTERLACE_METHOD,
+    if (!str) {
+        *deinterlace_ptr = GST_VAAPI_DEINTERLACE_METHOD_NONE;
+        return TRUE;
+    }
+    return parse_enum(str, GST_VAAPI_TYPE_DEINTERLACE_METHOD,
         GST_VAAPI_DEINTERLACE_METHOD_NONE, (gint *)deinterlace_ptr);
 }
 

-- 
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