Browse Source

MT#55283 remove pointless case distinction

`sink_handler` must be non-NULL here.

Change-Id: Ic36ab38a0dcfbfc5bd99f95a58057efd4a9bc3b1
Warned-by: Coverity
pull/1623/head
Richard Fuchs 3 years ago
parent
commit
1753ef569f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/media_socket.c

+ 2
- 2
daemon/media_socket.c View File

@ -1347,7 +1347,7 @@ output:
if (MEDIA_ISSET(media, ECHO))
redi->output.ssrc_subst = 1;
if (sink_handler && sink_handler->attrs.transcoding) {
if (sink_handler->attrs.transcoding) {
redi->output.ssrc_subst = 1;
reti->pt_filter = 1;
}
@ -1365,7 +1365,7 @@ output:
handler->out->kernel(&redi->output.encrypt, sink);
redi->output.rtcp_only = sink_handler ? (sink_handler->attrs.rtcp_only ? 1 : 0) : 0;
redi->output.rtcp_only = sink_handler->attrs.rtcp_only ? 1 : 0;
mutex_unlock(&sink->out_lock);


Loading…
Cancel
Save