mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
lavd/pulse_audio_enc: add another default to stream name
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
parent
2cf94485de
commit
c6c70c2bf7
@ -59,8 +59,12 @@ static av_cold int pulse_write_header(AVFormatContext *h)
|
|||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!stream_name)
|
if (!stream_name) {
|
||||||
stream_name = h->filename;
|
if (h->filename)
|
||||||
|
stream_name = h->filename;
|
||||||
|
else
|
||||||
|
stream_name = "Playback";
|
||||||
|
}
|
||||||
|
|
||||||
ss.format = codec_id_to_pulse_format(st->codec->codec_id);
|
ss.format = codec_id_to_pulse_format(st->codec->codec_id);
|
||||||
ss.rate = st->codec->sample_rate;
|
ss.rate = st->codec->sample_rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user