mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
-good: fix for new API
This commit is contained in:
parent
63a17f4ec9
commit
a0e301ab1a
5 changed files with 6 additions and 6 deletions
|
@ -939,14 +939,14 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
|
|||
gboolean result = FALSE;
|
||||
|
||||
/* first see what is possible on our source pad */
|
||||
thiscaps = gst_pad_get_caps_reffed (GST_BASE_SRC_PAD (basesrc));
|
||||
thiscaps = gst_pad_get_caps (GST_BASE_SRC_PAD (basesrc), NULL);
|
||||
GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps);
|
||||
/* nothing or anything is allowed, we're done */
|
||||
if (thiscaps == NULL || gst_caps_is_any (thiscaps))
|
||||
goto no_nego_needed;
|
||||
|
||||
/* get the peer caps */
|
||||
peercaps = gst_pad_peer_get_caps_reffed (GST_BASE_SRC_PAD (basesrc));
|
||||
peercaps = gst_pad_peer_get_caps (GST_BASE_SRC_PAD (basesrc), NULL);
|
||||
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
|
||||
if (peercaps) {
|
||||
/* get intersection */
|
||||
|
|
|
@ -262,7 +262,7 @@ gst_auto_audio_sink_find_best (GstAutoAudioSink * sink)
|
|||
* accept only sinks that match with the filter caps */
|
||||
if (sink->filter_caps) {
|
||||
el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "sink");
|
||||
el_caps = gst_pad_get_caps (el_pad);
|
||||
el_caps = gst_pad_get_caps (el_pad, NULL);
|
||||
gst_object_unref (el_pad);
|
||||
GST_DEBUG_OBJECT (sink,
|
||||
"Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
|
||||
|
|
|
@ -265,7 +265,7 @@ gst_auto_audio_src_find_best (GstAutoAudioSrc * src)
|
|||
* accept only sources that match with the filter caps */
|
||||
if (src->filter_caps) {
|
||||
el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "src");
|
||||
el_caps = gst_pad_get_caps (el_pad);
|
||||
el_caps = gst_pad_get_caps (el_pad, NULL);
|
||||
gst_object_unref (el_pad);
|
||||
GST_DEBUG_OBJECT (src,
|
||||
"Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
|
||||
|
|
|
@ -258,7 +258,7 @@ gst_auto_video_sink_find_best (GstAutoVideoSink * sink)
|
|||
* accept only sinks that match with the filter caps */
|
||||
if (sink->filter_caps) {
|
||||
el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "sink");
|
||||
el_caps = gst_pad_get_caps (el_pad);
|
||||
el_caps = gst_pad_get_caps (el_pad, NULL);
|
||||
gst_object_unref (el_pad);
|
||||
GST_DEBUG_OBJECT (sink,
|
||||
"Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
|
||||
|
|
|
@ -261,7 +261,7 @@ gst_auto_video_src_find_best (GstAutoVideoSrc * src)
|
|||
* accept only sources that match with the filter caps */
|
||||
if (src->filter_caps) {
|
||||
el_pad = gst_element_get_static_pad (GST_ELEMENT (el), "src");
|
||||
el_caps = gst_pad_get_caps (el_pad);
|
||||
el_caps = gst_pad_get_caps (el_pad, NULL);
|
||||
gst_object_unref (el_pad);
|
||||
GST_DEBUG_OBJECT (src,
|
||||
"Checking caps: %" GST_PTR_FORMAT " vs. %" GST_PTR_FORMAT,
|
||||
|
|
Loading…
Reference in a new issue