[0.11] gnonlin: tests: don't use deprecated API

Edward Hervey bilboed at kemper.freedesktop.org
Wed Jan 25 09:14:17 PST 2012


Module: gnonlin
Branch: 0.11
Commit: 461aa6dd107c84b0f04ee18bddc6c86269f7eceb
URL:    http://cgit.freedesktop.org/gstreamer/gnonlin/commit/?id=461aa6dd107c84b0f04ee18bddc6c86269f7eceb

Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date:   Wed Jan 25 18:13:35 2012 +0100

tests: don't use deprecated API

---

 tests/check/gnl/gnlcomposition.c |    3 ++-
 tests/check/gnl/gnloperation.c   |    3 ++-
 tests/check/gnl/seek.c           |    3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/check/gnl/gnlcomposition.c b/tests/check/gnl/gnlcomposition.c
index 6fcc68a..186d94f 100644
--- a/tests/check/gnl/gnlcomposition.c
+++ b/tests/check/gnl/gnlcomposition.c
@@ -405,7 +405,8 @@ gnonlin_suite (void)
 
   tcase_add_test (tc_chain, test_change_object_start_stop_in_current_stack);
   tcase_add_test (tc_chain, test_remove_invalid_object);
-  if (gst_default_registry_check_feature_version ("videomixer", 0, 11, 0)) {
+  if (gst_registry_check_feature_version (gst_registry_get (), "videomixer", 0,
+          11, 0)) {
     tcase_add_test (tc_chain, test_no_more_pads_race);
   } else {
     GST_WARNING ("videomixer element not available, skipping 1 test");
diff --git a/tests/check/gnl/gnloperation.c b/tests/check/gnl/gnloperation.c
index 2ebdf84..a91360c 100644
--- a/tests/check/gnl/gnloperation.c
+++ b/tests/check/gnl/gnloperation.c
@@ -689,7 +689,8 @@ gnonlin_suite (void)
   tcase_add_test (tc_chain, test_pyramid_operations);
   tcase_add_test (tc_chain, test_pyramid_operations2);
   tcase_add_test (tc_chain, test_pyramid_operations_expandable);
-  if (gst_default_registry_check_feature_version ("videomixer", 0, 11, 0)) {
+  if (gst_registry_check_feature_version (gst_registry_get (), "videomixer", 0,
+          11, 0)) {
     tcase_add_test (tc_chain, test_complex_operations);
     tcase_add_test (tc_chain, test_complex_operations_bis);
   } else
diff --git a/tests/check/gnl/seek.c b/tests/check/gnl/seek.c
index be5c96c..30e8270 100644
--- a/tests/check/gnl/seek.c
+++ b/tests/check/gnl/seek.c
@@ -727,7 +727,8 @@ gnonlin_suite (void)
   tcase_add_test (tc_chain, test_one_after_other);
   tcase_add_test (tc_chain, test_one_under_another);
   tcase_add_test (tc_chain, test_one_bin_after_other);
-  if (gst_default_registry_check_feature_version ("videomixer", 0, 11, 0)) {
+  if (gst_registry_check_feature_version (gst_registry_get (), "videomixer", 0,
+          11, 0)) {
     tcase_add_test (tc_chain, test_complex_operations);
     tcase_add_test (tc_chain, test_complex_operations_bis);
   } else



More information about the gstreamer-commits mailing list