projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
366bbff
)
wavparse: Don't do calculations with -1 offsets when handling SEGMENT events
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 19 Jan 2016 12:55:57 +0000
(14:55 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 19 Jan 2016 12:55:57 +0000
(14:55 +0200)
We use that to signal "infinity", taking the difference between that and some
other value is not going to give us any useful result for the end offsets of
segments.
gst/wavparse/gstwavparse.c
patch
|
blob
|
history
diff --git
a/gst/wavparse/gstwavparse.c
b/gst/wavparse/gstwavparse.c
index
687a41a
..
5aa86cb
100644
(file)
--- a/
gst/wavparse/gstwavparse.c
+++ b/
gst/wavparse/gstwavparse.c
@@
-2420,7
+2420,7
@@
gst_wavparse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* and set up streaming thread for next one */
wav->offset = offset;
wav->end_offset = end_offset;
- if (wav->end_offset
> 0
) {
+ if (wav->end_offset
!= -1
) {
wav->dataleft = wav->end_offset - wav->offset;
} else {
/* infinity; upstream will EOS when done */