summaryrefslogtreecommitdiff
path: root/test/media_device/media_device_link_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/media_device/media_device_link_test.cpp')
-rw-r--r--test/media_device/media_device_link_test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/media_device/media_device_link_test.cpp b/test/media_device/media_device_link_test.cpp
index 58a55cdf..484d3691 100644
--- a/test/media_device/media_device_link_test.cpp
+++ b/test/media_device/media_device_link_test.cpp
@@ -51,7 +51,11 @@ class MediaDeviceLinkTest : public Test
return TestSkip;
}
- dev_->acquire();
+ if (!dev_->acquire()) {
+ cerr << "Unable to acquire media device "
+ << dev_->deviceNode() << endl;
+ return TestSkip;
+ }
if (dev_->open()) {
cerr << "Failed to open media device at "