libeplayer3/output: unbreak GetFrameCount()

This commit is contained in:
martii
2014-04-26 14:53:43 +02:00
parent 8b416c8c16
commit 55c516e2d8

View File

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