Skip to content

Commit

Permalink
options: remove stale comment about encoding mode being compiled-in
Browse files Browse the repository at this point in the history
Encoding mode used to be a compile time option, but now it's always
compiled in.
  • Loading branch information
llyyr committed Oct 30, 2024
1 parent aa66f0d commit 0a2f757
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion options/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ typedef struct MPOpts {

struct input_opts *input_opts;

// may be NULL if encoding is not compiled-in
struct encode_opts *encode_opts;

char *ipc_path;
Expand Down
3 changes: 1 addition & 2 deletions player/configfiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ void mp_parse_cfgfiles(struct MPContext *mpctx)
talloc_free(p2);

char *section = NULL;
bool encoding = opts->encode_opts &&
opts->encode_opts->file && opts->encode_opts->file[0];
bool encoding = opts->encode_opts->file && opts->encode_opts->file[0];
// In encoding mode, we don't want to apply normal config options.
// So we "divert" normal options into a separate section, and the diverted
// section is never used - unless maybe it's explicitly referenced from an
Expand Down

0 comments on commit 0a2f757

Please sign in to comment.