mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
playback/player: gst-play: Check if the stream list is empty in print_all_stream_info before using it
This commit is contained in:
parent
e2581982a6
commit
50099a3aa1
1 changed files with 4 additions and 1 deletions
|
@ -195,9 +195,12 @@ static void
|
|||
print_all_stream_info (GstPlayerMediaInfo * media_info)
|
||||
{
|
||||
guint count = 0;
|
||||
GList *l, *list;
|
||||
GList *list, *l;
|
||||
|
||||
list = gst_player_media_info_get_stream_list (media_info);
|
||||
if (!list)
|
||||
return;
|
||||
|
||||
g_print ("URI : %s\n", gst_player_media_info_get_uri (media_info));
|
||||
g_print ("Duration: %" GST_TIME_FORMAT "\n",
|
||||
GST_TIME_ARGS (gst_player_media_info_get_duration (media_info)));
|
||||
|
|
Loading…
Reference in a new issue