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:
Benjamin Otte 2003-11-24 16:44:28 +00:00
parent 4495848883
commit f950c2d2ed

View file

@ -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);