frontend: Add reconnect callback for multitrack video
This commit is contained in:
parent
187eef7b38
commit
7a11db8949
1 changed files with 6 additions and 0 deletions
|
|
@ -394,6 +394,12 @@ void MultitrackVideoOutput::PrepareStreaming(QWidget *parent, const char *servic
|
|||
// Register the BPM (Broadcast Performance Metrics) callback
|
||||
obs_output_add_packet_callback(output, bpm_inject, NULL);
|
||||
|
||||
// Set callback to prevent reconnection attempts once the stream key has become invalid
|
||||
static auto reconnect_cb = [](void *, obs_output_t *, int code) -> bool {
|
||||
return code != OBS_OUTPUT_INVALID_STREAM;
|
||||
};
|
||||
obs_output_set_reconnect_callback(output, reconnect_cb, nullptr);
|
||||
|
||||
OBSSignal start_streaming;
|
||||
OBSSignal stop_streaming;
|
||||
SetupSignalHandlers(false, this, output, start_streaming, stop_streaming);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue