libeplayer3/output: remove redundant videofd check

This commit is contained in:
martii
2014-04-10 20:46:39 +02:00
parent 36869c9088
commit 2626355684

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;