diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-02-12 09:31:10 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-02-14 09:21:34 +0100 |
commit | de41ceabebb3decd46456fb7c81a3f7a4e1dd29a (patch) | |
tree | 39b1419189012e0f00e1dceede8253918e520d5e /src | |
parent | 30fb49130e5c56bfe1cf30f5944e66138d88c20f (diff) | |
download | pianobar-de41ceabebb3decd46456fb7c81a3f7a4e1dd29a.tar.gz pianobar-de41ceabebb3decd46456fb7c81a3f7a4e1dd29a.tar.bz2 pianobar-de41ceabebb3decd46456fb7c81a3f7a4e1dd29a.zip |
player: attach names to filters
Mainly useful for debugging with AV_LOG_DEBUG.
Diffstat (limited to 'src')
-rw-r--r-- | src/player.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player.c b/src/player.c index e415023..d3eb475 100644 --- a/src/player.c +++ b/src/player.c @@ -275,14 +275,14 @@ static bool openFilter (player_t * const player) { av_get_sample_fmt_name (player->cctx->sample_fmt), cp->channel_layout); if ((ret = avfilter_graph_create_filter (&player->fabuf, - avfilter_get_by_name ("abuffer"), NULL, strbuf, NULL, + avfilter_get_by_name ("abuffer"), "source", strbuf, NULL, player->fgraph)) < 0) { softfail ("create_filter abuffer"); } /* volume */ if ((ret = avfilter_graph_create_filter (&player->fvolume, - avfilter_get_by_name ("volume"), NULL, "0dB", NULL, + avfilter_get_by_name ("volume"), "volume", "0dB", NULL, player->fgraph)) < 0) { softfail ("create_filter volume"); } @@ -292,14 +292,14 @@ static bool openFilter (player_t * const player) { snprintf (strbuf, sizeof (strbuf), "sample_fmts=%s", av_get_sample_fmt_name (avformat)); if ((ret = avfilter_graph_create_filter (&fafmt, - avfilter_get_by_name ("aformat"), NULL, strbuf, NULL, + avfilter_get_by_name ("aformat"), "format", strbuf, NULL, player->fgraph)) < 0) { softfail ("create_filter aformat"); } /* abuffersink */ if ((ret = avfilter_graph_create_filter (&player->fbufsink, - avfilter_get_by_name ("abuffersink"), NULL, NULL, NULL, + avfilter_get_by_name ("abuffersink"), "sink", NULL, NULL, player->fgraph)) < 0) { softfail ("create_filter abuffersink"); } |