summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-10-27 09:12:33 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-10-27 09:12:33 +0000
commiteae8170d947531d3fb8f584876f1c7e066e42457 (patch)
treec7f087eeb3efec8c1e13f1b723bbe33572df5751
parent4dc92cff1ec25b63c32c73879d66b778f0a26635 (diff)
downloadgst-plugins-bad-eae8170d947531d3fb8f584876f1c7e066e42457.tar.gz
gst-plugins-bad-eae8170d947531d3fb8f584876f1c7e066e42457.tar.bz2
gst-plugins-bad-eae8170d947531d3fb8f584876f1c7e066e42457.zip
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.
-rw-r--r--ChangeLog5
-rw-r--r--gst/flv/gstflvdemux.c9
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 47fb0625..21e6f087 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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),
(gst_flv_demux_handle_seek_pull), (gst_flv_demux_dispose):
* gst/flv/gstflvdemux.h:
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 028dded8..a9984323 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -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;