projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef93130
)
oggdemux: Error out on EOS if we have no chains to use
author
Edward Hervey
<edward@centricular.com>
Fri, 20 Oct 2017 16:40:42 +0000
(18:40 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Fri, 20 Oct 2017 16:41:52 +0000
(18:41 +0200)
There are not active and pending chains, if we get EOS we need to
inform the user via an error message
ext/ogg/gstoggdemux.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggdemux.c
b/ext/ogg/gstoggdemux.c
index
34befa7
..
2652f13
100644
(file)
--- a/
ext/ogg/gstoggdemux.c
+++ b/
ext/ogg/gstoggdemux.c
@@
-4655,6
+4655,9
@@
gst_ogg_demux_send_event (GstOggDemux * ogg, GstEvent * event)
}
} else {
GST_WARNING_OBJECT (ogg, "No chain to forward event to");
+ if (GST_EVENT_TYPE (event) == GST_EVENT_EOS)
+ GST_ELEMENT_ERROR (ogg, STREAM, DEMUX, (NULL),
+ ("EOS before finding a chain"));
}
gst_event_unref (event);