mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/flv/gstflvdemux.c: Improve debugging a bit when pulling a buffer from upstream fails.
Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_pull_range): Improve debugging a bit when pulling a buffer from upstream fails.
This commit is contained in:
parent
4dc92cff1e
commit
eae8170d94
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-10-27 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/flv/gstflvdemux.c: (gst_flv_demux_pull_range):
|
||||
Improve debugging a bit when pulling a buffer from upstream fails.
|
||||
|
||||
2008-10-27 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup),
|
||||
|
|
|
@ -314,14 +314,17 @@ gst_flv_demux_pull_range (GstFLVDemux * demux, GstPad * pad, guint64 offset,
|
|||
|
||||
ret = gst_pad_pull_range (pad, offset, size, buffer);
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK)) {
|
||||
GST_WARNING_OBJECT (demux, "failed when pulling %d bytes", size);
|
||||
GST_WARNING_OBJECT (demux,
|
||||
"failed when pulling %d bytes from offset %" G_GUINT64_FORMAT ": %s",
|
||||
size, offset, gst_flow_get_name (ret));
|
||||
*buffer = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (G_UNLIKELY (*buffer && GST_BUFFER_SIZE (*buffer) != size)) {
|
||||
GST_WARNING_OBJECT (demux, "partial pull got %d when expecting %d",
|
||||
GST_BUFFER_SIZE (*buffer), size);
|
||||
GST_WARNING_OBJECT (demux,
|
||||
"partial pull got %d when expecting %d from offset %" G_GUINT64_FORMAT,
|
||||
GST_BUFFER_SIZE (*buffer), size, offset);
|
||||
gst_buffer_unref (*buffer);
|
||||
ret = GST_FLOW_UNEXPECTED;
|
||||
*buffer = NULL;
|
||||
|
|
Loading…
Reference in a new issue