playback/player: gst-play: display global taglist

This commit is contained in:
Brijesh Singh 2015-04-29 21:56:17 -05:00 committed by Sebastian Dröge
parent 696e1c9ab8
commit ef751e3dfd

View file

@ -196,6 +196,12 @@ print_all_stream_info (GstPlayerMediaInfo * media_info)
g_print ("URI : %s\n", gst_player_media_info_get_uri (media_info)); g_print ("URI : %s\n", gst_player_media_info_get_uri (media_info));
g_print ("Duration: %" GST_TIME_FORMAT "\n", g_print ("Duration: %" GST_TIME_FORMAT "\n",
GST_TIME_ARGS (gst_player_media_info_get_duration (media_info))); GST_TIME_ARGS (gst_player_media_info_get_duration (media_info)));
g_print ("Global taglist:\n");
if (gst_player_media_info_get_tags (media_info))
gst_tag_list_foreach (gst_player_media_info_get_tags (media_info),
print_one_tag, NULL);
else
g_print (" (nil) \n");
for (l = list; l != NULL; l = l->next) { for (l = list; l != NULL; l = l->next) {
GstTagList *tags = NULL; GstTagList *tags = NULL;
GstPlayerStreamInfo *stream = (GstPlayerStreamInfo *) l->data; GstPlayerStreamInfo *stream = (GstPlayerStreamInfo *) l->data;