dvr: Fix the NULL dereference caused by the previous  ccommit