Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joseph Newman
gstreamer
Commits
d8578d5c
Commit
d8578d5c
authored
Mar 14, 2012
by
Wim Taymans
Browse files
adapter: add more debug
parent
d2d7be7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/gst/base/gstadapter.c
View file @
d8578d5c
...
@@ -324,13 +324,14 @@ gst_adapter_push (GstAdapter * adapter, GstBuffer * buf)
...
@@ -324,13 +324,14 @@ gst_adapter_push (GstAdapter * adapter, GstBuffer * buf)
/* Note: merging buffers at this point is premature. */
/* Note: merging buffers at this point is premature. */
if
(
G_UNLIKELY
(
adapter
->
buflist
==
NULL
))
{
if
(
G_UNLIKELY
(
adapter
->
buflist
==
NULL
))
{
GST_LOG_OBJECT
(
adapter
,
"pushing first %"
G_GSIZE_FORMAT
" bytes"
,
size
);
GST_LOG_OBJECT
(
adapter
,
"pushing %p first %"
G_GSIZE_FORMAT
" bytes"
,
buf
,
size
);
adapter
->
buflist
=
adapter
->
buflist_end
=
g_slist_append
(
NULL
,
buf
);
adapter
->
buflist
=
adapter
->
buflist_end
=
g_slist_append
(
NULL
,
buf
);
update_timestamps
(
adapter
,
buf
);
update_timestamps
(
adapter
,
buf
);
}
else
{
}
else
{
/* Otherwise append to the end, and advance our end pointer */
/* Otherwise append to the end, and advance our end pointer */
GST_LOG_OBJECT
(
adapter
,
"pushing %"
G_GSIZE_FORMAT
" bytes at end, "
GST_LOG_OBJECT
(
adapter
,
"pushing
%p
%"
G_GSIZE_FORMAT
" bytes at end, "
"size now %"
G_GSIZE_FORMAT
,
size
,
adapter
->
size
);
"size now %"
G_GSIZE_FORMAT
,
buf
,
size
,
adapter
->
size
);
adapter
->
buflist_end
=
g_slist_append
(
adapter
->
buflist_end
,
buf
);
adapter
->
buflist_end
=
g_slist_append
(
adapter
->
buflist_end
,
buf
);
adapter
->
buflist_end
=
g_slist_next
(
adapter
->
buflist_end
);
adapter
->
buflist_end
=
g_slist_next
(
adapter
->
buflist_end
);
}
}
...
@@ -505,6 +506,7 @@ gst_adapter_unmap (GstAdapter * adapter)
...
@@ -505,6 +506,7 @@ gst_adapter_unmap (GstAdapter * adapter)
if
(
priv
->
info
.
memory
)
{
if
(
priv
->
info
.
memory
)
{
GstBuffer
*
cur
=
adapter
->
buflist
->
data
;
GstBuffer
*
cur
=
adapter
->
buflist
->
data
;
GST_LOG_OBJECT
(
adapter
,
"unmap memory buffer %p"
,
cur
);
gst_buffer_unmap
(
cur
,
&
priv
->
info
);
gst_buffer_unmap
(
cur
,
&
priv
->
info
);
priv
->
info
.
memory
=
NULL
;
priv
->
info
.
memory
=
NULL
;
}
}
...
...
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