]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts mux scheduler: fixed crash, fixes #2434
authorJaroslav Kysela <perex@perex.cz>
Thu, 30 Oct 2014 13:24:22 +0000 (14:24 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 30 Oct 2014 13:24:22 +0000 (14:24 +0100)
src/input/mpegts/mpegts_mux_sched.c

index 4ee2f44fe95e564e0519c39b05ed4f6c4785ea5b..029154c59a18b5f74327b02a9f49b2633106412b 100644 (file)
@@ -206,7 +206,7 @@ mpegts_mux_sched_timer ( void *p )
     assert(mms->mms_sub == NULL);
 
     if (!mms->mms_prch)
-      mms->mms_prch = calloc(1, sizeof(mms->mms_prch));
+      mms->mms_prch = calloc(1, sizeof(*mms->mms_prch));
     mms->mms_prch->prch_id = mm;
     mms->mms_prch->prch_st = &mms->mms_input;