mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
pw-cat: Enable libavutil logs
This is useful for debugging pw-cat encoded audio playback errors.
This commit is contained in:
parent
da21cfa93c
commit
580a3d9872
3 changed files with 9 additions and 4 deletions
|
|
@ -38,9 +38,8 @@ pwcat_deps = [ sndfile_dep ]
|
|||
if get_option('pw-cat').allowed() and sndfile_dep.found()
|
||||
build_pw_cat = true
|
||||
|
||||
if pw_cat_ffmpeg.allowed() and avcodec_dep.found() and avformat_dep.found()
|
||||
pwcat_deps += avcodec_dep
|
||||
pwcat_deps += avformat_dep
|
||||
if pw_cat_ffmpeg.allowed() and avcodec_dep.found() and avformat_dep.found() and avutil_dep.found()
|
||||
pwcat_deps += [avcodec_dep, avformat_dep, avutil_dep]
|
||||
build_pw_cat_with_ffmpeg = true
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
#ifdef HAVE_PW_CAT_FFMPEG_INTEGRATION
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavutil/log.h>
|
||||
#endif
|
||||
|
||||
#include "midifile.h"
|
||||
|
|
@ -1496,6 +1497,10 @@ int main(int argc, char *argv[])
|
|||
setlocale(LC_ALL, "");
|
||||
pw_init(&argc, &argv);
|
||||
|
||||
#ifdef HAVE_PW_CAT_FFMPEG_INTEGRATION
|
||||
av_log_set_level(AV_LOG_DEBUG);
|
||||
#endif
|
||||
|
||||
flags |= PW_STREAM_FLAG_AUTOCONNECT;
|
||||
|
||||
prog = argv[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue