Skip to content
Snippets Groups Projects
Commit c6c70c2b authored by Lukasz Marek's avatar Lukasz Marek
Browse files

lavd/pulse_audio_enc: add another default to stream name

parent 2cf94485
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment