Skip to content

Commit

Permalink
belacoder: don't log SRT errors after stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
rationalsa committed Sep 28, 2023
1 parent 193f02f commit 3031d45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions belacoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,11 @@ GstFlowReturn new_buf_cb(GstAppSink *sink, gpointer user_data) {
if (pkt_len == SRT_PKT_SIZE) {
int nb = srt_send(sock, pkt, SRT_PKT_SIZE);
if (nb != SRT_PKT_SIZE) {
fprintf(stderr, "The SRT connection failed, exiting\n");
stop();
if (!quit) {
fprintf(stderr, "The SRT connection failed, exiting\n");
stop();
}
code = GST_FLOW_ERROR;
goto ret;
}
pkt_len = 0;
Expand Down

0 comments on commit 3031d45

Please sign in to comment.