return;
}
meanstr = ((gchar *) mean->data) + 12;
+ meansize -= 12;
name = qtdemux_tree_get_child_by_type (node, FOURCC_name);
if (!name) {
return;
}
namestr = ((gchar *) name->data) + 12;
+ namesize -= 12;
/*
* Data atom is:
}
datatype = QT_UINT32 (((gchar *) data->data) + 8) & 0xFFFFFF;
- if (strncmp (meanstr, "com.apple.iTunes", meansize - 12) == 0) {
+ if ((strncmp (meanstr, "com.apple.iTunes", meansize) == 0) ||
+ (strncmp (meanstr, "org.hydrogenaudio.replaygain", meansize) == 0)) {
static const struct
{
const gchar name[28];
int i;
for (i = 0; i < G_N_ELEMENTS (tags); ++i) {
- if (!g_ascii_strncasecmp (tags[i].name, namestr, namesize - 12)) {
+ if (!g_ascii_strncasecmp (tags[i].name, namestr, namesize)) {
switch (gst_tag_get_type (tags[i].tag)) {
case G_TYPE_DOUBLE:
qtdemux_add_double_tag_from_str (demux, tags[i].tag,
/* errors */
unknown_tag:
+#ifndef GST_DISABLE_GST_DEBUG
{
gchar *namestr_dbg;
gchar *meanstr_dbg;
- meanstr_dbg = g_strndup (meanstr, meansize - 12);
- namestr_dbg = g_strndup (namestr, namesize - 12);
+ meanstr_dbg = g_strndup (meanstr, meansize);
+ namestr_dbg = g_strndup (namestr, namesize);
GST_WARNING_OBJECT (demux, "This tag %s:%s type:%u is not mapped, "
"file a bug at bugzilla.gnome.org", meanstr_dbg, namestr_dbg, datatype);
g_free (meanstr_dbg);
return;
}
+#endif
}
static void