Browse Source

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>
tags/n2.4
Lukasz Marek Michael Niedermayer 11 years ago
parent
commit
96602f4e34
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/pulse_audio_dec.c

+ 1
- 1
libavdevice/pulse_audio_dec.c View File

@@ -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())) {


Loading…
Cancel
Save