All pastes #433193 Raw Edit

Untitled

public text v1 · immutable
·published 2007-04-10 17:24 UTC
rendered paste body
diff --git a/libs/libmythtv/recorderbase.cpp b/libs/libmythtv/recorderbase.cpp
index 3323042..34e7e5d 100644
--- a/libs/libmythtv/recorderbase.cpp
+++ b/libs/libmythtv/recorderbase.cpp
@@ -58,6 +58,9 @@ void RecorderBase::SetRecording(const ProgramInfo *pginfo)
     else
         VERBOSE(VB_RECORD, LOC + "SetRecording(0x0)");
 
+    if (curRecording)
+        FinishRecording();
+
     ProgramInfo *oldrec = curRecording;
     if (pginfo)
         curRecording = new ProgramInfo(*pginfo);