From cb5aed875df0d5b11e6061168c2cb8e5904063a9 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 2 Jan 2015 21:30:02 +0100 Subject: [PATCH] mpegts input: fix the wrong variable access --- src/input/mpegts/mpegts_input.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/mpegts_input.c b/src/input/mpegts/mpegts_input.c index d65ff98f..c4f15275 100644 --- a/src/input/mpegts/mpegts_input.c +++ b/src/input/mpegts/mpegts_input.c @@ -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 */