mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
interlace: Add some more debug output to the getcaps function
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2335>
This commit is contained in:
parent
df7ee0e215
commit
c7db9ce70b
1 changed files with 5 additions and 0 deletions
|
@ -891,6 +891,8 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter)
|
||||||
top_field_first = interlace->top_field_first;
|
top_field_first = interlace->top_field_first;
|
||||||
GST_OBJECT_UNLOCK (interlace);
|
GST_OBJECT_UNLOCK (interlace);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (pad, "Querying caps with filter %" GST_PTR_FORMAT, filter);
|
||||||
|
|
||||||
if (filter != NULL) {
|
if (filter != NULL) {
|
||||||
clean_filter = gst_caps_copy (filter);
|
clean_filter = gst_caps_copy (filter);
|
||||||
if (pattern == GST_INTERLACE_PATTERN_1_1) {
|
if (pattern == GST_INTERLACE_PATTERN_1_1) {
|
||||||
|
@ -928,9 +930,12 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (pad, "Querying peer with filter %" GST_PTR_FORMAT,
|
||||||
|
clean_filter);
|
||||||
tcaps = gst_pad_get_pad_template_caps (otherpad);
|
tcaps = gst_pad_get_pad_template_caps (otherpad);
|
||||||
othercaps = gst_pad_peer_query_caps (otherpad, clean_filter);
|
othercaps = gst_pad_peer_query_caps (otherpad, clean_filter);
|
||||||
othercaps = gst_caps_make_writable (othercaps);
|
othercaps = gst_caps_make_writable (othercaps);
|
||||||
|
GST_DEBUG_OBJECT (pad, "Other caps %" GST_PTR_FORMAT, othercaps);
|
||||||
if (othercaps) {
|
if (othercaps) {
|
||||||
if (pattern == GST_INTERLACE_PATTERN_2_2) {
|
if (pattern == GST_INTERLACE_PATTERN_2_2) {
|
||||||
for (i = 0; i < gst_caps_get_size (othercaps); ++i) {
|
for (i = 0; i < gst_caps_get_size (othercaps); ++i) {
|
||||||
|
|
Loading…
Reference in a new issue