msg: remove global state

This commit is contained in:
wm4
2013-12-21 23:11:12 +01:00
parent 678ce04b3f
commit 245e5b8441
9 changed files with 84 additions and 73 deletions

View File

@@ -130,7 +130,7 @@ struct encode_lavc_context *encode_lavc_init(struct encode_output_conf *options,
!strcmp(filename, "/dev/stdout") ||
!strcmp(filename, "pipe:") ||
!strcmp(filename, "pipe:1")))
mp_msg_stdout_in_use = 1;
mp_msg_force_stderr(global, true);
ctx = talloc_zero(NULL, struct encode_lavc_context);
ctx->log = mp_log_new(ctx, global->log, "encode-lavc");