Skip to content

Commit

Permalink
Whitespace fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Nov 17, 2012
1 parent f28e5e6 commit 00f1f6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mythtv/libs/libmythtv/tv_play.cpp
Expand Up @@ -9014,16 +9014,18 @@ void TV::customEvent(QEvent *e)
ReturnPlayerLock(mctx);
return;
}

MythMediaEvent *me = static_cast<MythMediaEvent*>(e);
MythMediaDevice *device = me->getDevice();

QString filename = mctx->buffer->GetFilename();

if (device && filename.endsWith(device->getDevicePath()) &&
(device->getStatus() == MEDIASTAT_OPEN))
{
LOG(VB_GENERAL, LOG_NOTICE, "DVD has been ejected, exiting playback");
LOG(VB_GENERAL, LOG_NOTICE,
"DVD has been ejected, exiting playback");

for (uint i = 0; mctx && (i < player.size()); i++)
{
PlayerContext *ctx = GetPlayer(mctx, i);
Expand All @@ -9035,7 +9037,7 @@ void TV::customEvent(QEvent *e)
ReturnPlayerLock(mctx);
return;
}

if (e->type() != MythEvent::MythEventMessage)
return;

Expand Down

0 comments on commit 00f1f6e

Please sign in to comment.