mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
ext/ogg/gstoggdemux.c: If no stream was found before receiving EOS, post an error message.
Original commit message from CVS: * ext/ogg/gstoggdemux.c: (gst_ogg_demux_sink_event): If no stream was found before receiving EOS, post an error message. Fixes #561924.
This commit is contained in:
parent
f93fcafe64
commit
bae0d688dd
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-11-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
|
* ext/ogg/gstoggdemux.c: (gst_ogg_demux_sink_event):
|
||||||
|
If no stream was found before receiving EOS, post an error message.
|
||||||
|
Fixes #561924.
|
||||||
|
|
||||||
2008-11-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-11-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
* ext/theora/gsttheoraenc.h:
|
* ext/theora/gsttheoraenc.h:
|
||||||
|
|
|
@ -1484,6 +1484,15 @@ gst_ogg_demux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_EOS:
|
case GST_EVENT_EOS:
|
||||||
|
{
|
||||||
|
GST_DEBUG_OBJECT (ogg, "got an EOS event");
|
||||||
|
res = gst_pad_event_default (pad, event);
|
||||||
|
if (ogg->current_chain == NULL) {
|
||||||
|
GST_ELEMENT_ERROR (ogg, STREAM, DEMUX, (NULL),
|
||||||
|
("can't get first chain"));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
res = gst_pad_event_default (pad, event);
|
res = gst_pad_event_default (pad, event);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue