mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
fixed up bandwidth display when no video is selected
This commit is contained in:
parent
b78f7f11de
commit
90bc88089c
2 changed files with 6 additions and 3 deletions
|
@ -49,7 +49,7 @@ QVideoInputDevice::~QVideoInputDevice()
|
|||
delete _timer;
|
||||
}
|
||||
|
||||
bool QVideoInputDevice::stopped()
|
||||
bool QVideoInputDevice::stopped() const
|
||||
{
|
||||
return _timer == NULL ;
|
||||
}
|
||||
|
@ -204,7 +204,10 @@ bool QVideoInputDevice::getNextEncodedPacket(RsVOIPDataChunk& chunk)
|
|||
|
||||
uint32_t QVideoInputDevice::currentBandwidth() const
|
||||
{
|
||||
return _video_processor->currentBandwidthOut() ;
|
||||
if(stopped())
|
||||
return 0;
|
||||
else
|
||||
return _video_processor->currentBandwidthOut() ;
|
||||
}
|
||||
|
||||
QVideoOutputDevice::QVideoOutputDevice(QWidget *parent)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue