]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mpegts input: fix the wrong variable access
authorJaroslav Kysela <perex@perex.cz>
Fri, 2 Jan 2015 20:30:02 +0000 (21:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 2 Jan 2015 20:30:02 +0000 (21:30 +0100)
src/input/mpegts/mpegts_input.c

index d65ff98fc3bb3a13bc1ba2af9b445d58e2c8c001..c4f15275588ecff00b60c0021b74bf56275fd6ef 100644 (file)
@@ -850,7 +850,7 @@ mpegts_input_process
   mpegts_mux_instance_t *mmi;
   mpegts_pid_t *last_mp = NULL;
 #if ENABLE_TSDEBUG
-  off_t tsdebug_pos = mm->mm_tsdebug_pos;
+  off_t tsdebug_pos;
 #endif
 
   if (mm == NULL || (mmi = mm->mm_active) == NULL)
@@ -858,6 +858,9 @@ mpegts_input_process
 
   assert(mm == mmi->mmi_mux);
 
+#if ENABLE_TSDEBUG
+  tsdebug_pos = mm->mm_tsdebug_pos;
+#endif
   mi->mi_live = 1;
 
   /* Process */