Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscriptions: reshuffle code in subscription_unlink_mux() - coverity
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 749ce2e commit af518e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/subscriptions.c
Expand Up @@ -160,6 +160,8 @@ subscription_unlink_mux(th_subscription_t *s, int reason)

gtimer_disarm(&s->ths_receive_timer);

assert(mi);

pthread_mutex_lock(&mi->mi_output_lock);
s->ths_mmi = NULL;

Expand All @@ -169,7 +171,7 @@ subscription_unlink_mux(th_subscription_t *s, int reason)
sm = streaming_msg_create_code(SMT_STOP, reason);
streaming_target_deliver(s->ths_output, sm);

if (mi && (s->ths_flags & SUBSCRIPTION_FULLMUX))
if (s->ths_flags & SUBSCRIPTION_FULLMUX)
mi->mi_close_pid(mi, mm, MPEGTS_FULLMUX_PID, MPS_NONE, s);
LIST_REMOVE(s, ths_mmi_link);

Expand Down

0 comments on commit af518e9

Please sign in to comment.