Ticket #7170: programs_mythtranscode-pointer-checking

File programs_mythtranscode-pointer-checking, 831 bytes (added by Erik Hovland <erik@…>, 11 years ago)

Check pointers in mythtranscode

Line 
1Work on pointer validation.
2
3From: Erik Hovland <erik@hovland.org>
4
5
6---
7
8 mythtv/programs/mythtranscode/transcode.cpp |    3 +--
9 1 files changed, 1 insertions(+), 2 deletions(-)
10
11
12diff --git a/mythtv/programs/mythtranscode/transcode.cpp b/mythtv/programs/mythtranscode/transcode.cpp
13index 5342fd2..dbcfd39 100644
14--- a/mythtv/programs/mythtranscode/transcode.cpp
15+++ b/mythtv/programs/mythtranscode/transcode.cpp
16@@ -457,8 +457,7 @@ int Transcode::TranscodeFile(
17             (JobQueue::IsJobRunning(JOB_COMMFLAG, m_proginfo)))
18         {
19             VERBOSE(VB_IMPORTANT, "Transcoding aborted, cutlist changed");
20-            if (player_ctx)
21-                delete player_ctx;
22+            delete player_ctx;
23             return REENCODE_CUTLIST_CHANGE;
24         }
25         m_proginfo->SetMarkupFlag(MARK_UPDATED_CUT, false);