mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
pad: rename new api from _refed to _reffed.
Due to popular demand rename the new api as we still can.
This commit is contained in:
parent
fcb283b78b
commit
a78c8bf3ed
3 changed files with 7 additions and 7 deletions
|
@ -1624,7 +1624,7 @@ connect_element (GstDecodeBin * dbin, GstElement * element,
|
||||||
GstPad *pad = GST_PAD_CAST (pads->data);
|
GstPad *pad = GST_PAD_CAST (pads->data);
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
caps = gst_pad_get_caps_refed (pad);
|
caps = gst_pad_get_caps_reffed (pad);
|
||||||
analyze_new_pad (dbin, element, pad, caps, chain);
|
analyze_new_pad (dbin, element, pad, caps, chain);
|
||||||
if (caps)
|
if (caps)
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
@ -1728,7 +1728,7 @@ pad_added_cb (GstElement * element, GstPad * pad, GstDecodeChain * chain)
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (pad, "pad added, chain:%p", chain);
|
GST_DEBUG_OBJECT (pad, "pad added, chain:%p", chain);
|
||||||
|
|
||||||
caps = gst_pad_get_caps_refed (pad);
|
caps = gst_pad_get_caps_reffed (pad);
|
||||||
analyze_new_pad (dbin, element, pad, caps, chain);
|
analyze_new_pad (dbin, element, pad, caps, chain);
|
||||||
if (caps)
|
if (caps)
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
@ -2604,8 +2604,8 @@ sort_end_pads (GstDecodePad * da, GstDecodePad * db)
|
||||||
GstStructure *sa, *sb;
|
GstStructure *sa, *sb;
|
||||||
const gchar *namea, *nameb;
|
const gchar *namea, *nameb;
|
||||||
|
|
||||||
capsa = gst_pad_get_caps_refed (GST_PAD (da));
|
capsa = gst_pad_get_caps_reffed (GST_PAD (da));
|
||||||
capsb = gst_pad_get_caps_refed (GST_PAD (db));
|
capsb = gst_pad_get_caps_reffed (GST_PAD (db));
|
||||||
|
|
||||||
sa = gst_caps_get_structure ((const GstCaps *) capsa, 0);
|
sa = gst_caps_get_structure ((const GstCaps *) capsa, 0);
|
||||||
sb = gst_caps_get_structure ((const GstCaps *) capsb, 0);
|
sb = gst_caps_get_structure ((const GstCaps *) capsb, 0);
|
||||||
|
@ -2746,7 +2746,7 @@ gst_decode_chain_get_topology (GstDecodeChain * chain)
|
||||||
/* Caps that resulted in this chain */
|
/* Caps that resulted in this chain */
|
||||||
caps = gst_pad_get_negotiated_caps (chain->pad);
|
caps = gst_pad_get_negotiated_caps (chain->pad);
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
caps = gst_pad_get_caps_refed (chain->pad);
|
caps = gst_pad_get_caps_reffed (chain->pad);
|
||||||
if (G_UNLIKELY (!gst_caps_is_fixed (caps))) {
|
if (G_UNLIKELY (!gst_caps_is_fixed (caps))) {
|
||||||
GST_ERROR_OBJECT (chain->pad,
|
GST_ERROR_OBJECT (chain->pad,
|
||||||
"Couldn't get fixed caps, got %" GST_PTR_FORMAT, caps);
|
"Couldn't get fixed caps, got %" GST_PTR_FORMAT, caps);
|
||||||
|
|
|
@ -2044,7 +2044,7 @@ pad_added_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
|
||||||
|
|
||||||
playbin = group->playbin;
|
playbin = group->playbin;
|
||||||
|
|
||||||
caps = gst_pad_get_caps_refed (pad);
|
caps = gst_pad_get_caps_reffed (pad);
|
||||||
s = gst_caps_get_structure (caps, 0);
|
s = gst_caps_get_structure (caps, 0);
|
||||||
name = gst_structure_get_name (s);
|
name = gst_structure_get_name (s);
|
||||||
|
|
||||||
|
|
|
@ -967,7 +967,7 @@ has_all_raw_caps (GstPad * pad, gboolean * all_raw)
|
||||||
guint i, num_raw = 0;
|
guint i, num_raw = 0;
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
|
|
||||||
caps = gst_pad_get_caps_refed (pad);
|
caps = gst_pad_get_caps_reffed (pad);
|
||||||
if (caps == NULL)
|
if (caps == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue