diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-07-17 19:04:40 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-07-17 19:04:40 +0100 |
commit | e0b11462ef6d89a8690568d1e6757d1460254a64 (patch) | |
tree | 309aa4c10a564e5ed26c37f70eb7acd64eebe5c1 | |
parent | ac55519dca598770fb9b76f3f8e499ddf15391bc (diff) |
tests: use playbin instead of playbin2 and get "current-uri" instead of "uri"
g_object_get(playbin, "uri"...) now returns NULL instead of the
current URI in the source setup handler. Not a bug apparently,
but a feature.
-rw-r--r-- | tests/insanity-test-gst-play.c | 5 | ||||
-rw-r--r-- | tests/insanity-test-gst-seek.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/insanity-test-gst-play.c b/tests/insanity-test-gst-play.c index a9e4a45..c3727b7 100644 --- a/tests/insanity-test-gst-play.c +++ b/tests/insanity-test-gst-play.c @@ -48,7 +48,7 @@ found_source (GstElement * playbin, GstElement * appsrc, gpointer ptest) const gchar *pluginname; GstElementFactory *factory; - g_object_get (global_pipeline, "uri", &uri, NULL); + g_object_get (global_pipeline, "current-uri", &uri, NULL); if (!g_str_has_prefix (uri, "appsrc")) { g_free (uri); @@ -89,7 +89,7 @@ play_gst_test_create_pipeline (InsanityGstPipelineTest * ptest, insanity_test_get_boolean_argument (INSANITY_TEST (ptest), "progressive-download", &progressive_download); - playbin = gst_element_factory_make ("playbin2", "playbin2"); + playbin = gst_element_factory_make ("playbin", "playbin"); global_pipeline = playbin; if (appsink) { @@ -235,6 +235,7 @@ main (int argc, char **argv) g_value_init (&vdef, G_TYPE_BOOLEAN); g_value_set_boolean (&vdef, FALSE); + insanity_test_add_argument (test, "progressive-download", "Enable progressive download mode", NULL, TRUE, &vdef); g_value_unset (&vdef); diff --git a/tests/insanity-test-gst-seek.c b/tests/insanity-test-gst-seek.c index 66df16b..9774d3b 100644 --- a/tests/insanity-test-gst-seek.c +++ b/tests/insanity-test-gst-seek.c @@ -164,7 +164,7 @@ found_source (GstElement * playbin, GstElement * appsrc, gpointer ptest) const gchar *pluginname; GstElementFactory *factory; - g_object_get (global_pipeline, "uri", &uri, NULL); + g_object_get (global_pipeline, "current-uri", &uri, NULL); if (!g_str_has_prefix (uri, "appsrc")) { g_free (uri); @@ -444,7 +444,7 @@ seek_test_create_pipeline (InsanityGstPipelineTest * ptest, gpointer userdata) insanity_test_get_boolean_argument (INSANITY_TEST (ptest), "progressive-download", &progressive_download); - playbin = gst_element_factory_make ("playbin2", "playbin2"); + playbin = gst_element_factory_make ("playbin", "playbin"); global_pipeline = playbin; if (appsink) { |