From 756adc67760400da77268fe69ea52469985937bc Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 21 Jun 2024 23:00:09 +0200 Subject: do not call read_header() Looks like this is private and has never been intended to be call by us. --- mpd-notification.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mpd-notification.c b/mpd-notification.c index 7e7f302..af8985a 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -119,11 +119,6 @@ GdkPixbuf * retrieve_artwork(const char * music_dir, const char * uri) { goto image; } - if (pFormatCtx->iformat->read_header(pFormatCtx) < 0) { - fprintf(stderr, "%s: Could not read the format header.\n", program); - goto image; - } - /* find the first attached picture, if available */ for (i = 0; i < pFormatCtx->nb_streams; i++) { if (pFormatCtx->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) { -- cgit v1.2.3-70-g09d2