Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
2c84beeb
Commit
2c84beeb
authored
Dec 19, 2010
by
Edward Hervey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gst-discoverer: show global tags by default
parent
3e35df72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
tools/gst-discoverer.c
tools/gst-discoverer.c
+22
-3
No files found.
tools/gst-discoverer.c
View file @
2c84beeb
...
...
@@ -204,9 +204,6 @@ print_stream_info (GstDiscovererStreamInfo * info, void *depth)
desc
=
gst_stream_video_information_to_string
(
info
,
GPOINTER_TO_INT
(
depth
)
+
1
);
}
if
(
desc
)
{
g_print
(
"%s"
,
desc
);
g_free
(
desc
);
}
...
...
@@ -240,13 +237,35 @@ print_topology (GstDiscovererStreamInfo * info, gint depth)
}
}
static
gboolean
print_tag_each
(
GQuark
field_id
,
const
GValue
*
value
,
gpointer
user_data
)
{
gint
tab
=
GPOINTER_TO_INT
(
user_data
);
gchar
*
ser
;
ser
=
gst_value_serialize
(
value
);
g_print
(
"%*s%s: %s
\n
"
,
tab
,
" "
,
gst_tag_get_nick
(
g_quark_to_string
(
field_id
)),
ser
);
g_free
(
ser
);
return
TRUE
;
}
static
void
print_properties
(
GstDiscovererInfo
*
info
,
gint
tab
)
{
const
GstTagList
*
tags
;
g_print
(
"%*sDuration: %"
GST_TIME_FORMAT
"
\n
"
,
tab
+
1
,
" "
,
GST_TIME_ARGS
(
gst_discoverer_info_get_duration
(
info
)));
g_print
(
"%*sSeekable: %s
\n
"
,
tab
+
1
,
" "
,
(
gst_discoverer_info_get_seekable
(
info
)
?
"yes"
:
"no"
));
if
((
tags
=
gst_discoverer_info_get_tags
(
info
)))
{
g_print
(
"%*sTags:
\n
"
,
tab
+
1
,
" "
);
gst_structure_foreach
((
const
GstStructure
*
)
tags
,
print_tag_each
,
GINT_TO_POINTER
(
tab
+
5
));
}
}
static
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment