Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Ezstream
Commits
75a9a410
Commit
75a9a410
authored
Jan 23, 2018
by
Moritz Grimm
Browse files
Style improvements
parent
20c7bd64
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ezconfig0.c
View file @
75a9a410
...
...
@@ -612,8 +612,6 @@ parseConfig(const char *fileName)
void
freeConfig
(
EZCONFIG
*
cfg
)
{
unsigned
int
i
;
if
(
cfg
==
NULL
)
return
;
...
...
@@ -646,6 +644,8 @@ freeConfig(EZCONFIG *cfg)
if
(
cfg
->
serverQuality
!=
NULL
)
free
(
cfg
->
serverQuality
);
if
(
cfg
->
encoderDecoders
!=
NULL
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
MAX_FORMAT_ENCDEC
;
i
++
)
{
if
(
cfg
->
encoderDecoders
[
i
]
!=
NULL
)
{
if
(
cfg
->
encoderDecoders
[
i
]
->
format
!=
NULL
)
...
...
src/ezstream-cfgmigrate.c
View file @
75a9a410
...
...
@@ -309,7 +309,7 @@ _parse_ezconfig0(EZCONFIG *ez)
}
else
{
if
(
ed
->
format
&&
0
==
strcasecmp
(
ed
->
format
,
"THEORA"
))
{
cfg_encoder_t
enc
=
NULL
;
cfg_encoder_t
enc
;
enc
=
cfg_encoder_list_find
(
enc_list
,
ed
->
format
);
...
...
src/ezstream.c
View file @
75a9a410
...
...
@@ -101,7 +101,6 @@ _build_reencode_cmd(const char *extension, const char *filename,
char
*
custom_songinfo
;
struct
util_dict
dicts
[
6
];
char
*
dec_str
;
char
*
enc_str
;
char
*
cmd_str
;
size_t
cmd_str_size
;
...
...
@@ -189,6 +188,8 @@ _build_reencode_cmd(const char *extension, const char *filename,
dec_str
=
util_expand_words
(
cfg_decoder_get_program
(
decoder
),
dicts
);
cmd_str_size
=
strlen
(
dec_str
)
+
1
;
if
(
cfg_encoder_get_program
(
encoder
))
{
char
*
enc_str
;
enc_str
=
util_expand_words
(
cfg_encoder_get_program
(
encoder
),
dicts
);
cmd_str_size
+=
strlen
(
" | "
)
+
strlen
(
enc_str
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment