From f950c2d2ed20f3bbeadbcadbade12ee1fb827a4c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 24 Nov 2003 16:44:28 +0000 Subject: [PATCH] forgot breaks and fixed a bogus 'value used uninitialized' Original commit message from CVS: forgot breaks and fixed a bogus 'value used uninitialized' --- ext/mad/gstid3tag.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/mad/gstid3tag.c b/ext/mad/gstid3tag.c index 91b0a2f67b..3a9515ed5f 100644 --- a/ext/mad/gstid3tag.c +++ b/ext/mad/gstid3tag.c @@ -387,13 +387,13 @@ gst_id3_tag_src_event (GstPad *pad, GstEvent *event) tag->state == GST_ID3_TAG_STATE_NORMAL && GST_PAD_PEER (tag->sinkpad)) { GstEvent *new; - gint diff; + gint diff = 0; switch (GST_EVENT_SEEK_METHOD (event)) { - case GST_SEEK_METHOD_SET: diff = tag->v2tag_size_new - tag->v2tag_size; - case GST_SEEK_METHOD_CUR: diff = 0; - case GST_SEEK_METHOD_END: diff = GST_EVENT_SEEK_OFFSET(event) ? tag->v1tag_size_new - tag->v1tag_size : 0; - default: g_assert_not_reached(); + case GST_SEEK_METHOD_SET: diff = tag->v2tag_size_new - tag->v2tag_size; break; + 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; break; + default: g_assert_not_reached(); break; } new = gst_event_new_seek (GST_EVENT_SEEK_TYPE (event), GST_EVENT_SEEK_OFFSET(event) + diff);