Skip to content

Commit

Permalink
MPEGRecorder: Close chanfd if we fail to initialize device. One of th…
Browse files Browse the repository at this point in the history
…e cases wasn't handled.
  • Loading branch information
daniel-kristjansson committed Mar 28, 2012
1 parent 142b981 commit 401f846
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/mpegrecorder.cpp
Expand Up @@ -423,7 +423,11 @@ bool MpegRecorder::OpenV4L2DeviceAsInput(void)
SetRecordingVolume(chanfd); // we don't care if this fails...

if (!SetV4L2DeviceOptions(chanfd))
{
close(chanfd);
chanfd = -1;
return false;
}

SetVBIOptions(chanfd); // we don't care if this fails...

Expand Down

0 comments on commit 401f846

Please sign in to comment.