mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
discoverer: Fix code style a bit
if (...) one_line; else if (...) { many_lines; } else one_line; looks a bit confusing.
This commit is contained in:
parent
fe67cd3d00
commit
aa04403006
1 changed files with 4 additions and 3 deletions
|
@ -307,9 +307,9 @@ print_tag_foreach (const GstTagList * tags, const gchar * tag,
|
|||
|
||||
gst_tag_list_copy_value (&val, tags, tag);
|
||||
|
||||
if (G_VALUE_HOLDS_STRING (&val))
|
||||
if (G_VALUE_HOLDS_STRING (&val)) {
|
||||
str = g_value_dup_string (&val);
|
||||
else if (G_VALUE_TYPE (&val) == GST_TYPE_SAMPLE) {
|
||||
} else if (G_VALUE_TYPE (&val) == GST_TYPE_SAMPLE) {
|
||||
GstSample *sample = gst_value_get_sample (&val);
|
||||
GstBuffer *img = gst_sample_get_buffer (sample);
|
||||
GstCaps *caps = gst_sample_get_caps (sample);
|
||||
|
@ -329,8 +329,9 @@ print_tag_foreach (const GstTagList * tags, const gchar * tag,
|
|||
} else {
|
||||
str = g_strdup ("NULL buffer");
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
str = gst_value_serialize (&val);
|
||||
}
|
||||
|
||||
g_print ("%*s%s: %s\n", 2 * depth, " ", gst_tag_get_nick (tag), str);
|
||||
g_free (str);
|
||||
|
|
Loading…
Reference in a new issue