mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
forgot breaks and fixed a bogus 'value used uninitialized'
Original commit message from CVS: forgot breaks and fixed a bogus 'value used uninitialized'
This commit is contained in:
parent
4495848883
commit
f950c2d2ed
1 changed files with 5 additions and 5 deletions
|
@ -387,13 +387,13 @@ gst_id3_tag_src_event (GstPad *pad, GstEvent *event)
|
||||||
tag->state == GST_ID3_TAG_STATE_NORMAL &&
|
tag->state == GST_ID3_TAG_STATE_NORMAL &&
|
||||||
GST_PAD_PEER (tag->sinkpad)) {
|
GST_PAD_PEER (tag->sinkpad)) {
|
||||||
GstEvent *new;
|
GstEvent *new;
|
||||||
gint diff;
|
gint diff = 0;
|
||||||
|
|
||||||
switch (GST_EVENT_SEEK_METHOD (event)) {
|
switch (GST_EVENT_SEEK_METHOD (event)) {
|
||||||
case GST_SEEK_METHOD_SET: diff = tag->v2tag_size_new - tag->v2tag_size;
|
case GST_SEEK_METHOD_SET: diff = tag->v2tag_size_new - tag->v2tag_size; break;
|
||||||
case GST_SEEK_METHOD_CUR: diff = 0;
|
case GST_SEEK_METHOD_CUR: break;
|
||||||
case GST_SEEK_METHOD_END: diff = GST_EVENT_SEEK_OFFSET(event) ? tag->v1tag_size_new - tag->v1tag_size : 0;
|
case GST_SEEK_METHOD_END: diff = GST_EVENT_SEEK_OFFSET(event) ? tag->v1tag_size_new - tag->v1tag_size : 0; break;
|
||||||
default: g_assert_not_reached();
|
default: g_assert_not_reached(); break;
|
||||||
}
|
}
|
||||||
new = gst_event_new_seek (GST_EVENT_SEEK_TYPE (event),
|
new = gst_event_new_seek (GST_EVENT_SEEK_TYPE (event),
|
||||||
GST_EVENT_SEEK_OFFSET(event) + diff);
|
GST_EVENT_SEEK_OFFSET(event) + diff);
|
||||||
|
|
Loading…
Reference in a new issue