mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +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>
|
2008-10-27 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
* gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup),
|
* 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);
|
ret = gst_pad_pull_range (pad, offset, size, buffer);
|
||||||
if (G_UNLIKELY (ret != GST_FLOW_OK)) {
|
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;
|
*buffer = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (G_UNLIKELY (*buffer && GST_BUFFER_SIZE (*buffer) != size)) {
|
if (G_UNLIKELY (*buffer && GST_BUFFER_SIZE (*buffer) != size)) {
|
||||||
GST_WARNING_OBJECT (demux, "partial pull got %d when expecting %d",
|
GST_WARNING_OBJECT (demux,
|
||||||
GST_BUFFER_SIZE (*buffer), size);
|
"partial pull got %d when expecting %d from offset %" G_GUINT64_FORMAT,
|
||||||
|
GST_BUFFER_SIZE (*buffer), size, offset);
|
||||||
gst_buffer_unref (*buffer);
|
gst_buffer_unref (*buffer);
|
||||||
ret = GST_FLOW_UNEXPECTED;
|
ret = GST_FLOW_UNEXPECTED;
|
||||||
*buffer = NULL;
|
*buffer = NULL;
|
||||||
|
|
Loading…
Reference in a new issue