summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2024-12-21 12:37:15 +0100
committerLars-Dominik Braun <lars@6xq.net>2024-12-21 12:37:15 +0100
commitd6606fdd3b8d09aa7254fe2408ca573864ccd909 (patch)
treebbbeaf43822de682bbd8d572b73d274104b8388b /src
parent41ac06c8585dc535c4b1737b4c2943bb3fe7beb0 (diff)
downloadpianobar-d6606fdd3b8d09aa7254fe2408ca573864ccd909.tar.gz
pianobar-d6606fdd3b8d09aa7254fe2408ca573864ccd909.tar.bz2
pianobar-d6606fdd3b8d09aa7254fe2408ca573864ccd909.zip
player: Replace deprecated function avcodec_close.
Diffstat (limited to 'src')
-rw-r--r--src/player.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index 753d490..bded009 100644
--- a/src/player.c
+++ b/src/player.c
@@ -514,7 +514,7 @@ static void finish (player_t * const player) {
player->fgraph = NULL;
}
if (player->cctx != NULL) {
- avcodec_close (player->cctx);
+ avcodec_free_context (&player->cctx);
player->cctx = NULL;
}
if (player->fctx != NULL) {