From 16fee38988bb0f4a0865b6e8c3b332df2d6d8f14 Mon Sep 17 00:00:00 2001 From: Ho-Yon Mak Date: Thu, 26 Oct 2023 21:03:14 +0100 Subject: [PATCH] remove unnecessary call to avformat_find_stream_info Fixes: #98 --- mpris.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mpris.c b/mpris.c index 66a2108..cbdde1e 100644 --- a/mpris.c +++ b/mpris.c @@ -286,11 +286,6 @@ static gchar* try_get_youtube_thumbnail(char *path) } static gchar* extract_embedded_art(AVFormatContext *context) { - if (avformat_find_stream_info(context, NULL) < 0) { - g_printerr("failed to find stream info"); - return NULL; - } - AVPacket *packet = NULL; for (unsigned int i = 0; i < context->nb_streams; i++) { if (context->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) {