PulseAudio expilitly requires name of the source. This patch makes it use default source when not provided. It simplifies programistic use.
Signed-off-by: Lukasz Marek <lukasz.m.lu...@gmail.com> --- libavdevice/pulse_audio_dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c index 01ff6d1..a7b0e5d 100644 --- a/libavdevice/pulse_audio_dec.c +++ b/libavdevice/pulse_audio_dec.c @@ -154,7 +154,7 @@ static av_cold int pulse_read_header(AVFormatContext *s) attr.fragsize = pd->fragment_size; - if (strcmp(s->filename, "default")) + if (s->filename[0] != '\0' && strcmp(s->filename, "default")) device = s->filename; if (!(pd->mainloop = pa_threaded_mainloop_new())) { -- 1.9.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel