ext/mad/gstid3tag.c: forward correctly transformed offset in discont events. Based on

Original commit message from CVS:
* ext/mad/gstid3tag.c: (gst_id3_tag_handle_event):
forward correctly transformed offset in discont events. Based on
patch by Arwed v. Merkatz. (fixes #142851)
This commit is contained in:
Arwed v. Merkatz 2004-06-06 21:03:07 +00:00 committed by Benjamin Otte
parent 76c5f32d43
commit 2c766ca508
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-06-06 Benjamin Otte <otte@gnome.org>
* ext/mad/gstid3tag.c: (gst_id3_tag_handle_event):
forward correctly transformed offset in discont events. Based on
patch by Arwed v. Merkatz. (fixes #142851)
2004-06-06 David Schleef <ds@schleef.org>
* gst/ffmpegcolorspace/gstffmpegcodecmap.c: that's

View file

@ -798,7 +798,12 @@ gst_id3_tag_handle_event (GstPad * pad, GstEvent * event)
GstEvent *new;
if (gst_event_discont_get_value (event, GST_FORMAT_BYTES, &value)) {
value += tag->v1tag_size;
if (value > tag->v2tag_size) {
value -= tag->v2tag_size;
} else {
/* FIXME: throw an error here? */
value = 0;
}
new =
gst_event_new_discontinuous (FALSE, GST_FORMAT_BYTES, value, 0);
gst_data_unref (GST_DATA (event));