mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-04 07:26:33 +00:00
resindvd,autoconvert: Avoid depending on 0.10.26 API
Wait until after the next release to bump the core requirement. Until then, don't use gst_plugin_feature_list_copy and gst_pad_peer_get_caps_refed.
This commit is contained in:
parent
3d3d131b0f
commit
7d53c39237
2 changed files with 3 additions and 3 deletions
|
@ -2352,7 +2352,7 @@ gst_base_src_default_negotiate (RsnBaseSrc * basesrc)
|
||||||
gboolean result = FALSE;
|
gboolean result = FALSE;
|
||||||
|
|
||||||
/* first see what is possible on our source pad */
|
/* first see what is possible on our source pad */
|
||||||
thiscaps = gst_pad_get_caps_refed (RSN_BASE_SRC_PAD (basesrc));
|
thiscaps = gst_pad_get_caps (RSN_BASE_SRC_PAD (basesrc));
|
||||||
GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps);
|
GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps);
|
||||||
/* nothing or anything is allowed, we're done */
|
/* nothing or anything is allowed, we're done */
|
||||||
if (thiscaps == NULL || gst_caps_is_any (thiscaps))
|
if (thiscaps == NULL || gst_caps_is_any (thiscaps))
|
||||||
|
@ -2362,7 +2362,7 @@ gst_base_src_default_negotiate (RsnBaseSrc * basesrc)
|
||||||
goto no_caps;
|
goto no_caps;
|
||||||
|
|
||||||
/* get the peer caps */
|
/* get the peer caps */
|
||||||
peercaps = gst_pad_peer_get_caps_refed (RSN_BASE_SRC_PAD (basesrc));
|
peercaps = gst_pad_peer_get_caps (RSN_BASE_SRC_PAD (basesrc));
|
||||||
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
||||||
if (peercaps) {
|
if (peercaps) {
|
||||||
GstCaps *icaps;
|
GstCaps *icaps;
|
||||||
|
|
|
@ -291,7 +291,7 @@ gst_auto_convert_set_property (GObject * object,
|
||||||
GST_AUTOCONVERT_LOCK (autoconvert);
|
GST_AUTOCONVERT_LOCK (autoconvert);
|
||||||
if (autoconvert->factories == NULL) {
|
if (autoconvert->factories == NULL) {
|
||||||
GList *factories = g_value_get_pointer (value);
|
GList *factories = g_value_get_pointer (value);
|
||||||
autoconvert->factories = gst_plugin_feature_list_copy (factories);
|
autoconvert->factories = g_list_copy (factories);
|
||||||
} else
|
} else
|
||||||
GST_WARNING_OBJECT (object, "Can not reset factories after they"
|
GST_WARNING_OBJECT (object, "Can not reset factories after they"
|
||||||
" have been set or auto-discovered");
|
" have been set or auto-discovered");
|
||||||
|
|
Loading…
Reference in a new issue