Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
luzpaz
gstreamer
Commits
c55962c2
Commit
c55962c2
authored
Nov 15, 2011
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_peer_get_caps() -> peer_query_caps()
parent
d805f0f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
gst/gstpad.c
gst/gstpad.c
+2
-2
gst/gstpad.h
gst/gstpad.h
+1
-1
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasesrc.c
+1
-1
libs/gst/base/gstbasetransform.c
libs/gst/base/gstbasetransform.c
+1
-1
tests/check/elements/selector.c
tests/check/elements/selector.c
+3
-3
No files found.
gst/gstpad.c
View file @
c55962c2
...
...
@@ -2157,7 +2157,7 @@ gst_pad_query_caps (GstPad * pad, GstCaps * filter)
/**
* gst_pad_peer_
get
_caps:
* gst_pad_peer_
query
_caps:
* @pad: a #GstPad to get the capabilities of.
* @filter: a #GstCaps filter.
*
...
...
@@ -2174,7 +2174,7 @@ gst_pad_query_caps (GstPad * pad, GstCaps * filter)
* returns %NULL when there is no peer pad.
*/
GstCaps
*
gst_pad_peer_
get
_caps
(
GstPad
*
pad
,
GstCaps
*
filter
)
gst_pad_peer_
query
_caps
(
GstPad
*
pad
,
GstCaps
*
filter
)
{
GstCaps
*
result
=
NULL
;
GstQuery
*
query
;
...
...
gst/gstpad.h
View file @
c55962c2
...
...
@@ -838,7 +838,7 @@ GstCaps * gst_pad_query_caps (GstPad * pad, GstCaps *filter);
gboolean
gst_pad_accept_caps
(
GstPad
*
pad
,
GstCaps
*
caps
);
gboolean
gst_pad_set_caps
(
GstPad
*
pad
,
GstCaps
*
caps
);
GstCaps
*
gst_pad_peer_
get
_caps
(
GstPad
*
pad
,
GstCaps
*
filter
);
GstCaps
*
gst_pad_peer_
query
_caps
(
GstPad
*
pad
,
GstCaps
*
filter
);
gboolean
gst_pad_peer_accept_caps
(
GstPad
*
pad
,
GstCaps
*
caps
);
/* capsnego for linked pads */
...
...
libs/gst/base/gstbasesrc.c
View file @
c55962c2
...
...
@@ -2760,7 +2760,7 @@ gst_base_src_default_negotiate (GstBaseSrc * basesrc)
goto
no_caps
;
/* get the peer caps */
peercaps
=
gst_pad_peer_
get
_caps
(
GST_BASE_SRC_PAD
(
basesrc
),
thiscaps
);
peercaps
=
gst_pad_peer_
query
_caps
(
GST_BASE_SRC_PAD
(
basesrc
),
thiscaps
);
GST_DEBUG_OBJECT
(
basesrc
,
"caps of peer: %"
GST_PTR_FORMAT
,
peercaps
);
if
(
peercaps
)
{
/* The result is already a subset of our caps */
...
...
libs/gst/base/gstbasetransform.c
View file @
c55962c2
...
...
@@ -673,7 +673,7 @@ gst_base_transform_query_caps (GstBaseTransform * trans, GstPad * pad,
peerfilter
=
temp
;
}
peercaps
=
gst_pad_peer_
get
_caps
(
otherpad
,
peerfilter
);
peercaps
=
gst_pad_peer_
query
_caps
(
otherpad
,
peerfilter
);
if
(
peerfilter
)
gst_caps_unref
(
peerfilter
);
...
...
tests/check/elements/selector.c
View file @
c55962c2
...
...
@@ -474,7 +474,7 @@ GST_START_TEST (test_output_selector_getcaps_none);
g_object_set
(
sel
,
"active-pad"
,
pad
,
NULL
);
caps
=
gst_pad_peer_
get
_caps
(
input_pad
,
NULL
);
caps
=
gst_pad_peer_
query
_caps
(
input_pad
,
NULL
);
/* in 'none' mode, the getcaps returns the template, which is ANY */
g_assert
(
gst_caps_is_any
(
caps
));
...
...
@@ -514,7 +514,7 @@ GST_START_TEST (test_output_selector_getcaps_all);
g_object_set
(
sel
,
"active-pad"
,
pad
,
NULL
);
caps
=
gst_pad_peer_
get
_caps
(
input_pad
,
NULL
);
caps
=
gst_pad_peer_
query
_caps
(
input_pad
,
NULL
);
g_assert
(
gst_caps_is_equal
(
caps
,
expected
));
gst_caps_unref
(
caps
);
...
...
@@ -556,7 +556,7 @@ GST_START_TEST (test_output_selector_getcaps_active);
templ
=
gst_pad_get_pad_template
((
GstPad
*
)
walker
->
data
);
expected
=
gst_pad_template_get_caps
(
templ
);
caps
=
gst_pad_peer_
get
_caps
(
input_pad
,
NULL
);
caps
=
gst_pad_peer_
query
_caps
(
input_pad
,
NULL
);
g_assert
(
gst_caps_is_equal
(
caps
,
expected
));
gst_caps_unref
(
caps
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment