Permalink
Browse files

Fix NULL deref caught by cppcheck.

  • Loading branch information...
daniel-kristjansson committed Nov 17, 2012
1 parent 2653de8 commit f9ac736ddd178d95e37380d228368c235df646ee
Showing with 2 additions and 3 deletions.
  1. +2 −3 mythtv/libs/libmythtv/tv_play.cpp
@@ -9019,9 +9019,8 @@ void TV::customEvent(QEvent *e)
MythMediaDevice *device = me->getDevice();
QString filename = mctx->buffer->GetFilename();
QString devicePath = device->getDevicePath();
if (device && filename.endsWith(devicePath) &&
if (device && filename.endsWith(device->getDevicePath()) &&
(device->getStatus() == MEDIASTAT_OPEN))
{
LOG(VB_GENERAL, LOG_NOTICE, "DVD has been ejected, exiting playback");

0 comments on commit f9ac736

Please sign in to comment.