diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-08-07 01:58:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-18 22:36:46 +0200 |
commit | 96602f4e349bfa3b75109dd8d3c2418f37e986e5 (patch) | |
tree | ec6178b26bba8af9c043d4910d41937f5bcd1085 /libavdevice | |
parent | 30cac8313aa80ad175c001a4773d3ce61c65d982 (diff) | |
download | ffmpeg-96602f4e349bfa3b75109dd8d3c2418f37e986e5.tar.gz |
lavd/pulse_audio_dec: use default source when no input provided
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.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/pulse_audio_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/pulse_audio_dec.c b/libavdevice/pulse_audio_dec.c index 01ff6d1711..a7b0e5d8c1 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())) { |