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
parent
149550392b
commit
3d1c13210a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue