Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bouquet: fix rescan for the enabled bouquet
  • Loading branch information
perexg committed Nov 8, 2014
1 parent 966d3a8 commit 2b909f2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/bouquet.c
Expand Up @@ -540,14 +540,20 @@ bouquet_class_get_list(void *o)
}

static void
bouquet_class_rescan_notify ( void *obj )
bouquet_class_rescan_notify0 ( bouquet_t *bq )
{
void mpegts_mux_bouquet_rescan ( const char *src, const char *extra );
mpegts_mux_bouquet_rescan(bq->bq_src, bq->bq_comment);
bq->bq_rescan = 0;
}

static void
bouquet_class_rescan_notify ( void *obj )
{
bouquet_t *bq = obj;

if (bq->bq_rescan)
mpegts_mux_bouquet_rescan(bq->bq_src, bq->bq_comment);
bq->bq_rescan = 0;
bouquet_class_rescan_notify0(bq);
}

static void
Expand All @@ -556,7 +562,7 @@ bouquet_class_enabled_notify ( void *obj )
bouquet_t *bq = obj;

if (bq->bq_enabled)
bouquet_class_rescan_notify(obj);
bouquet_class_rescan_notify0(bq);
bouquet_map_to_channels(bq);
}

Expand Down

0 comments on commit 2b909f2

Please sign in to comment.