aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki@gmail.com>2013-10-24 18:10:06 +0200
committerLukasz Marek <lukasz.m.luki@gmail.com>2013-10-26 01:58:01 +0200
commitc6c70c2bf76cbec073c97f92dea2fe1fbcf6665c (patch)
tree1543ee1f0a7c629826713398ddadf6f7a1bc58ec
parent2cf94485de9aa0e8f4552fd9477e0d4bc5cb84bc (diff)
downloadffmpeg-c6c70c2bf76cbec073c97f92dea2fe1fbcf6665c.tar.gz
lavd/pulse_audio_enc: add another default to stream name
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
-rw-r--r--libavdevice/pulse_audio_enc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index 53436969f0..86ef6488c0 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -59,8 +59,12 @@ static av_cold int pulse_write_header(AVFormatContext *h)
return AVERROR(EINVAL);
}
- if (!stream_name)
- stream_name = h->filename;
+ if (!stream_name) {
+ if (h->filename)
+ stream_name = h->filename;
+ else
+ stream_name = "Playback";
+ }
ss.format = codec_id_to_pulse_format(st->codec->codec_id);
ss.rate = st->codec->sample_rate;