[Bug 752092] avidemux: audio skips on some files after update from 1.4 to 1.5
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Jul 7 21:18:19 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=752092
--- Comment #3 from Vineeth <vineeth.tm at samsung.com> ---
doing some analysis on this.. These are my observations..
The above commit replaces gst_buffer_new_wrapped_full
with gst_adapter_get_buffer, which is supposed to do the same as the previous..
The main problem seems to happen in gst_adapter_get_buffer(), the below piece
of code.
if (skip == 0 && hsize == nbytes) {
GST_LOG_OBJECT (adapter, "providing buffer of %" G_GSIZE_FORMAT " bytes"
" as head buffer", nbytes);
buffer = gst_buffer_ref (cur);
goto done;
}
just doing a ref of the cur buffer is not working properly.. But if i just
extract the data and use the same buffer, then there is no issue. Like the
below piece of code...
data = g_malloc (nbytes);
gst_buffer_extract (cur, skip, data, nbytes);
buffer = gst_buffer_new_wrapped (data, nbytes);
strangely even if i do copy of buffer "buffer = gst_buffer_copy (cur);", there
is same issue.
I was thinking copy should work same as the above 3 statements. But something
seems to be missing.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list