transcoder: check for language config is NULL

This commit is contained in:
Adam Sutton 2013-09-10 17:23:08 +01:00
parent 46eecb85f1
commit ee7937f76a

View file

@ -109,7 +109,7 @@ http_get_transcoder_properties(struct http_arg_list *args,
if ((s = http_arg_get(args, "language")))
strncpy(props->tp_language, s, 3);
else
strncpy(props->tp_language, config_get_language(), 3);
strncpy(props->tp_language, config_get_language() ?: "", 3);
if ((s = http_arg_get(args, "vcodec")))
props->tp_vcodec = streaming_component_txt2type(s);