From 7f6697020e0a82af2fdc9682e494bfccd0a929eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 16 May 2011 15:31:58 +0200 Subject: [PATCH] tests: Update for negotiation related API changes --- tests/examples/encoding/encoding.c | 2 +- tests/icles/playback/test.c | 2 +- tests/icles/playback/test5.c | 2 +- tests/icles/playback/test6.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/examples/encoding/encoding.c b/tests/examples/encoding/encoding.c index 89674ce..497aa63 100644 --- a/tests/examples/encoding/encoding.c +++ b/tests/examples/encoding/encoding.c @@ -225,7 +225,7 @@ pad_added_cb (GstElement * uridecodebin, GstPad * pad, GstElement * encodebin) GstCaps *caps; /* Ask encodebin for a compatible pad */ - caps = gst_pad_get_caps (pad); + caps = gst_pad_get_caps (pad, NULL); g_signal_emit_by_name (encodebin, "request-pad", caps, &sinkpad); if (caps) gst_caps_unref (caps); diff --git a/tests/icles/playback/test.c b/tests/icles/playback/test.c index 3c944ec..4526b1d 100644 --- a/tests/icles/playback/test.c +++ b/tests/icles/playback/test.c @@ -85,7 +85,7 @@ cb_newpad (GstElement * decodebin, GstPad * pad, gboolean last, gpointer data) GstPadLinkReturn lret; /* check media type */ - caps = gst_pad_get_caps (pad); + caps = gst_pad_get_caps (pad, NULL); str = gst_caps_get_structure (caps, 0); name = gst_structure_get_name (str); diff --git a/tests/icles/playback/test5.c b/tests/icles/playback/test5.c index 8d7db76..2f54041 100644 --- a/tests/icles/playback/test5.c +++ b/tests/icles/playback/test5.c @@ -71,7 +71,7 @@ dump_element_stats (GstElement * element) g_print ("stream %s:\n", GST_OBJECT_NAME (pad)); - caps = gst_pad_get_caps (pad); + caps = gst_pad_get_caps (pad, NULL); str = gst_caps_to_string (caps); g_print (" caps: %s\n", str); g_free (str); diff --git a/tests/icles/playback/test6.c b/tests/icles/playback/test6.c index 0e43481..451f5c3 100644 --- a/tests/icles/playback/test6.c +++ b/tests/icles/playback/test6.c @@ -140,7 +140,7 @@ main (gint argc, gchar * argv[]) g_print ("stream %s:\n", GST_OBJECT_NAME (pad)); - caps = gst_pad_get_caps (pad); + caps = gst_pad_get_caps (pad, NULL); str = gst_caps_to_string (caps); g_print (" caps: %s\n", str); g_free (str); -- 2.7.4