libeplayer3/output: unbreak GetFrameCount()

Origin commit data
------------------
Branch: master
Commit: 55c516e2d8
Author: martii <m4rtii@gmx.de>
Date: 2014-04-26 (Sat, 26 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-04-26 14:53:43 +02:00
parent e931f448bf
commit a7a0a8dab9

View File

@@ -144,7 +144,6 @@ bool Output::Play()
|| dioctl(audiofd, AUDIO_PLAY, NULL))
ret = false;
}
return ret;
}
@@ -282,8 +281,8 @@ bool Output::GetFrameCount(int64_t &framecount)
{
dvb_play_info_t playInfo;
if ((videofd > -1 && dioctl(videofd, VIDEO_GET_PLAY_INFO, (void *) &playInfo)) ||
(audiofd > -1 && dioctl(audiofd, AUDIO_GET_PLAY_INFO, (void *) &playInfo))) {
if ((videofd > -1 && !dioctl(videofd, VIDEO_GET_PLAY_INFO, (void *) &playInfo)) ||
(audiofd > -1 && !dioctl(audiofd, AUDIO_GET_PLAY_INFO, (void *) &playInfo))) {
framecount = playInfo.frame_count;
return true;
}