mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
76c5f32d43
commit
2c766ca508
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue