mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
tests: Update for negotiation related API changes
This commit is contained in:
parent
ed89c9d38f
commit
7f6697020e
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue