Browse Source

deps/media-playback: Remove unnecessary log line

Every time a media player instance would be initialized, it would
create a new `Set FFmpeg options:` log message. With lots of looping
media sources, this gets incredibly spammy. It's already being logged
by the media source itself, so this line is pretty much unnecessary.
tt2468 2 years ago
parent
commit
57e6053c81
1 changed files with 1 additions and 5 deletions
  1. 1 5
      deps/media-playback/media-playback/media.c

+ 1 - 5
deps/media-playback/media-playback/media.c

@@ -704,14 +704,10 @@ static bool init_avformat(mp_media_t *m)
 	if (m->ffmpeg_options) {
 		int ret = av_dict_parse_string(&opts, m->ffmpeg_options, "=",
 					       " ", 0);
-		if (ret) {
+		if (ret)
 			blog(LOG_WARNING,
 			     "Failed to parse FFmpeg options: %s\n%s",
 			     av_err2str(ret), m->ffmpeg_options);
-		} else {
-			blog(LOG_INFO, "Set FFmpeg options: %s",
-			     m->ffmpeg_options);
-		}
 	}
 
 	m->fmt = avformat_alloc_context();