summaryrefslogtreecommitdiffstats
path: root/gst/apetag
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-09-14 11:05:35 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-09-14 11:05:35 +0000
commitdcba7c77ef3f3ee2d5c42fd42bab46c2d50f96e8 (patch)
tree3e8001fad2f597fac64f664a0ccff51378e917a6 /gst/apetag
parente73ddd490e67ef375586cb5c668bd8fb2c8b802a (diff)
gst/: Don't interpret a first buffer with an offset of NONE as 'from the middle of the stream', but only a first buff...
Original commit message from CVS: * gst/apetag/gsttagdemux.c: (gst_tag_demux_chain_parse_tag): * gst/id3demux/gstid3demux.c: (gst_id3demux_chain): Don't interpret a first buffer with an offset of NONE as 'from the middle of the stream', but only a first buffer that has a valid buffer offset that's non-zero (see #345449).
Diffstat (limited to 'gst/apetag')
-rw-r--r--gst/apetag/gsttagdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/apetag/gsttagdemux.c b/gst/apetag/gsttagdemux.c
index 4a18b07c..2dd189a0 100644
--- a/gst/apetag/gsttagdemux.c
+++ b/gst/apetag/gsttagdemux.c
@@ -461,7 +461,7 @@ gst_tag_demux_chain_parse_tag (GstTagDemux * demux, GstBuffer * collect)
/* If we receive a buffer that's from the middle of the file,
* we can't read tags so move to typefinding */
- if (GST_BUFFER_OFFSET (collect) != 0) {
+ if (GST_BUFFER_OFFSET_IS_VALID (collect) && GST_BUFFER_OFFSET (collect) != 0) {
GST_DEBUG_OBJECT (demux, "Received buffer from non-zero offset %"
G_GINT64_FORMAT ". Can't read tags", GST_BUFFER_OFFSET (collect));
demux->priv->state = GST_TAG_DEMUX_TYPEFINDING;