mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Consistently set errstrp
This commit is contained in:
parent
d1ae8fa17d
commit
dcb5303b4b
@ -110,7 +110,7 @@ cfg_encoder_set_format_str(struct cfg_encoder *e, const char *fmt_str,
|
|||||||
{
|
{
|
||||||
enum cfg_stream_format fmt;
|
enum cfg_stream_format fmt;
|
||||||
|
|
||||||
if (!fmt_str) {
|
if (!fmt_str || !fmt_str[0]) {
|
||||||
if (errstrp)
|
if (errstrp)
|
||||||
*errstrp = "empty";
|
*errstrp = "empty";
|
||||||
return (-1);
|
return (-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user