mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
gst-libs/gst/tag/gsttagdemux.c: Fail to activate if there's insufficient data in the file to be usable, preventing an...
Original commit message from CVS: * gst-libs/gst/tag/gsttagdemux.c: Fail to activate if there's insufficient data in the file to be usable, preventing an assertion fail later. Fixes #552960
This commit is contained in:
parent
1afc481158
commit
46ce5c3737
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-09-22 Michael Smith <msmith@songbirdnest.com>
|
||||
|
||||
* gst-libs/gst/tag/gsttagdemux.c:
|
||||
Fail to activate if there's insufficient data in the file to be usable,
|
||||
preventing an assertion fail later. Fixes #552960
|
||||
|
||||
2008-09-15 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||
|
||||
* gst-libs/gst/pbutils/descriptions.c:
|
||||
|
|
|
@ -1151,6 +1151,13 @@ gst_tag_demux_sink_activate (GstPad * sinkpad)
|
|||
demux->priv->send_tag_event = TRUE;
|
||||
}
|
||||
|
||||
if (demux->priv->upstream_size <=
|
||||
demux->priv->strip_start + demux->priv->strip_end) {
|
||||
/* There was no data (probably due to a truncated file) */
|
||||
GST_DEBUG_OBJECT (demux, "No data in file");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* 3 - Do typefinding on data */
|
||||
caps = gst_type_find_helper_get_range (GST_OBJECT (demux),
|
||||
(GstTypeFindHelperGetRangeFunction) gst_tag_demux_read_range,
|
||||
|
|
Loading…
Reference in a new issue