obs-ffmpeg: Signal a remote disconnect for network streams from ffmpeg-mux

If using ffmpeg-mux to send a network stream, signal a disconnect error code
on error to allow reconnections to take place.
master
Eric Lindvall 2020-09-11 23:30:54 -07:00 committed by Jim
parent 149550392b
commit 3d1c13210a
1 changed files with 5 additions and 1 deletions

View File

@ -440,7 +440,11 @@ static void signal_failure(struct ffmpeg_muxer *stream)
code = OBS_OUTPUT_UNSUPPORTED;
break;
default:
code = OBS_OUTPUT_ERROR;
if (stream->is_network) {
code = OBS_OUTPUT_DISCONNECTED;
} else {
code = OBS_OUTPUT_ENCODE_ERROR;
}
}
obs_output_signal_stop(stream->output, code);