Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
profile: fix sharing (missing STOP messages)
  • Loading branch information
perexg committed Nov 25, 2014
1 parent fbe1f1f commit 3579d04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/profile.c
Expand Up @@ -571,6 +571,9 @@ profile_sharer_input(void *opaque, streaming_message_t *sm)
profile_sharer_deliver(run, streaming_msg_clone(sm));
run = prch;
continue;
} else if (sm->sm_type == SMT_STOP) {
run = prch;
continue;
}
if (sm->sm_type != SMT_PACKET && sm->sm_type != SMT_MPEGTS)
continue;
Expand Down
4 changes: 1 addition & 3 deletions src/subscriptions.c
Expand Up @@ -129,9 +129,7 @@ subscription_unlink_service0(th_subscription_t *s, int reason, int stop)

streaming_target_disconnect(&t->s_streaming_pad, &s->ths_input);

if(stop &&
TAILQ_FIRST(&t->s_filt_components) != NULL &&
s->ths_state == SUBSCRIPTION_GOT_SERVICE) {
if(stop && t->s_running) {
// Send a STOP message to the subscription client
sm = streaming_msg_create_code(SMT_STOP, reason);
streaming_target_deliver(s->ths_output, sm);
Expand Down

0 comments on commit 3579d04

Please sign in to comment.