From 3f30607fbdca410668fb3e46613a7fec7aa27f2e Mon Sep 17 00:00:00 2001 From: martii Date: Thu, 10 Apr 2014 20:46:39 +0200 Subject: [PATCH] libeplayer3/output: remove redundant videofd check --- libeplayer3/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libeplayer3/output.cpp b/libeplayer3/output.cpp index 07851a1..b48ea60 100644 --- a/libeplayer3/output.cpp +++ b/libeplayer3/output.cpp @@ -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;