DVR: when registering a subscription, include title of event in subscription name

This commit is contained in:
Andreas Öman 2009-07-20 10:13:19 +00:00
parent 3a6a69b1f5
commit 801fc1b26b

View file

@ -58,13 +58,17 @@ static void dvr_thread_epilog(dvr_entry_t *de);
void
dvr_rec_subscribe(dvr_entry_t *de)
{
char buf[100];
assert(de->de_s == NULL);
snprintf(buf, sizeof(buf), "DVR: %s", de->de_title);
streaming_queue_init(&de->de_sq);
pthread_create(&de->de_thread, NULL, dvr_thread, de);
de->de_s = subscription_create_from_channel(de->de_channel, 1000, "pvr",
de->de_s = subscription_create_from_channel(de->de_channel, 1000, buf,
&de->de_sq.sq_st);
}