mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 09:04:15 +00:00
gst/id3demux/id3v2frames.c: Remove errant break statement, and fix compilation with older GCC.
Original commit message from CVS: * gst/id3demux/id3v2frames.c: (id3v2_tag_to_taglist): Remove errant break statement, and fix compilation with older GCC.
This commit is contained in:
parent
70db0f6985
commit
7ca387e542
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-01-23 Jan Schmidt <thaytan@mad.scientist.com>
|
||||||
|
|
||||||
|
* gst/id3demux/id3v2frames.c: (id3v2_tag_to_taglist):
|
||||||
|
Remove errant break statement, and fix compilation with
|
||||||
|
older GCC.
|
||||||
|
|
||||||
2006-01-23 Brian Cameron <brian dot cameron at sun dot com>
|
2006-01-23 Brian Cameron <brian dot cameron at sun dot com>
|
||||||
|
|
||||||
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
Reviewed by: Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
|
@ -299,7 +299,10 @@ id3v2_tag_to_taglist (ID3TagsWorking * work, const gchar * tag_name,
|
||||||
|
|
||||||
default:{
|
default:{
|
||||||
gchar *tmp = NULL;
|
gchar *tmp = NULL;
|
||||||
|
GValue src = { 0, };
|
||||||
|
GValue dest = { 0, };
|
||||||
|
|
||||||
|
/* Ensure that any date string is complete */
|
||||||
if (tag_type == GST_TYPE_DATE) {
|
if (tag_type == GST_TYPE_DATE) {
|
||||||
guint year = 1901, month = 1, day = 1;
|
guint year = 1901, month = 1, day = 1;
|
||||||
|
|
||||||
|
@ -310,13 +313,9 @@ id3v2_tag_to_taglist (ID3TagsWorking * work, const gchar * tag_name,
|
||||||
|
|
||||||
tmp = g_strdup_printf ("%04u-%02u-%02u", year, month, day);
|
tmp = g_strdup_printf ("%04u-%02u-%02u", year, month, day);
|
||||||
tag_str = tmp;
|
tag_str = tmp;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handles anything else */
|
/* handles anything else */
|
||||||
GValue src = { 0, };
|
|
||||||
GValue dest = { 0, };
|
|
||||||
|
|
||||||
g_value_init (&src, G_TYPE_STRING);
|
g_value_init (&src, G_TYPE_STRING);
|
||||||
g_value_set_string (&src, (const gchar *) tag_str);
|
g_value_set_string (&src, (const gchar *) tag_str);
|
||||||
g_value_init (&dest, tag_type);
|
g_value_init (&dest, tag_type);
|
||||||
|
|
Loading…
Reference in a new issue