Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
subscription: fix the assert from the last cleanup
  • Loading branch information
perexg committed Mar 13, 2015
1 parent 2d703fb commit 385c416
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/subscriptions.c
Expand Up @@ -584,10 +584,8 @@ subscription_create

TAILQ_INIT(&s->ths_instances);

assert(flags & (SUBSCRIPTION_NONE|SUBSCRIPTION_MPEGTS|SUBSCRIPTION_PACKET));

switch (flags & SUBSCRIPTION_TYPE_MASK) {
default:
case SUBSCRIPTION_NONE:
reject |= SMT_TO_MASK(SMT_PACKET) | SMT_TO_MASK(SMT_MPEGTS);
break;
case SUBSCRIPTION_MPEGTS:
Expand All @@ -596,6 +594,8 @@ subscription_create
case SUBSCRIPTION_PACKET:
reject |= SMT_TO_MASK(SMT_MPEGTS); // Reject raw mpegts
break;
default:
abort();
}

if (!cb) cb = subscription_input_direct;
Expand Down

0 comments on commit 385c416

Please sign in to comment.