| 446 | } |
| 447 | |
| 448 | bool Grabber::setWidthHeight(int width, int height) |
| 449 | { |
| 450 | if (Grabber::trySetWidthHeight(width, height)) |
| 451 | { |
| 452 | Debug(_log, "setWidthHeight preparing to restarting video grabber %i", _initialized); |
| 453 | |
| 454 | if (_initialized && !_blocked) |
| 455 | { |
| 456 | Debug(_log, "Restarting video grabber"); |
| 457 | uninit(); |
| 458 | start(); |
| 459 | } |
| 460 | else |
| 461 | { |
| 462 | Info(_log, "Delayed restart of the grabber due to change of the capturing resolution"); |
| 463 | _restartNeeded = true; |
| 464 | } |
| 465 | |
| 466 | return true; |
| 467 | } |
| 468 | return false; |
| 469 | } |
| 470 | |
| 471 | bool Grabber::setInput(int input) |
| 472 | { |
no test coverage detected