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
@ -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>
|
2004-06-06 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/ffmpegcolorspace/gstffmpegcodecmap.c: that's
|
* gst/ffmpegcolorspace/gstffmpegcodecmap.c: that's
|
||||||
|
@ -798,7 +798,12 @@ gst_id3_tag_handle_event (GstPad * pad, GstEvent * event)
|
|||||||
GstEvent *new;
|
GstEvent *new;
|
||||||
|
|
||||||
if (gst_event_discont_get_value (event, GST_FORMAT_BYTES, &value)) {
|
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 =
|
new =
|
||||||
gst_event_new_discontinuous (FALSE, GST_FORMAT_BYTES, value, 0);
|
gst_event_new_discontinuous (FALSE, GST_FORMAT_BYTES, value, 0);
|
||||||
gst_data_unref (GST_DATA (event));
|
gst_data_unref (GST_DATA (event));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user