Skip to content

Commit

Permalink
remove unnecessary call to avformat_find_stream_info
Browse files Browse the repository at this point in the history
Fixes: #98
  • Loading branch information
hoyon committed Oct 26, 2023
1 parent f759c86 commit 16fee38
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mpris.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16fee38

Please sign in to comment.