ffmpeg | branch: master | Lukasz Marek <lukasz.m.lu...@gmail.com> | Thu Aug  7 
01:58:55 2014 +0200| [96602f4e349bfa3b75109dd8d3c2418f37e986e5] | committer: 
Michael Niedermayer

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.lu...@gmail.com>
Signed-off-by: Michael Niedermayer <michae...@gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=96602f4e349bfa3b75109dd8d3c2418f37e986e5
---

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

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to