libeplayer3/output: remove redundant videofd check

This commit is contained in:
martii
2014-04-10 20:46:39 +02:00
parent 5f340ec4a8
commit 3f30607fbd

View File

@@ -87,7 +87,7 @@ bool Output::Open()
if (audiofd < 0)
audiofd = open(AUDIODEV, O_RDWR);
if (audiofd < 0 && videofd > -1) {
if (audiofd < 0) {
close(videofd);
videofd = -1;
return false;