Skip to content

Commit

Permalink
fix bug in error saving logging
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Mar 5, 2020
1 parent bcf4bb5 commit d51fefd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion replay-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,10 @@ void replay_save(struct replay_source *context)
if (!obs_output_start(context->fileOutput)) {
const char *error =
obs_output_get_last_error(context->fileOutput);
warn("error output start: %s");
if (error)
warn("error output start: %s", error);
else
warn("error output start");
context->saving_status = SAVING_STATUS_NONE;
if (context->free_after_save) {
replay_free_replay(&context->saving_replay, context);
Expand Down

0 comments on commit d51fefd

Please sign in to comment.