[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11761: make sure there is a legit w
From: |
Rob Savoye |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11761: make sure there is a legit webcam beforfe trying to access it. |
Date: |
Sat, 16 Jan 2010 11:59:17 -0700 |
User-agent: |
Bazaar (2.0.2) |
------------------------------------------------------------
revno: 11761
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Sat 2010-01-16 11:59:17 -0700
message:
make sure there is a legit webcam beforfe trying to access it.
modified:
libmedia/gst/VideoInputGst.cpp
=== modified file 'libmedia/gst/VideoInputGst.cpp'
--- a/libmedia/gst/VideoInputGst.cpp 2010-01-11 06:41:38 +0000
+++ b/libmedia/gst/VideoInputGst.cpp 2010-01-16 18:59:17 +0000
@@ -948,6 +948,9 @@
int fps)
{
+ if (!webcam) {
+ log_error("%s: webam isn't set!", __FUNCTION__);
+ }
for (int i = 0; i < webcam->_currentFormat->numFramerates; ++i) {
int val = std::ceil(static_cast<double>(
webcam->_currentFormat->framerates[i].numerator /
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11761: make sure there is a legit webcam beforfe trying to access it.,
Rob Savoye <=