mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
fixed a few bugs. Still not working
This commit is contained in:
parent
024999ed67
commit
f55c115bdb
3 changed files with 81 additions and 37 deletions
|
@ -83,8 +83,9 @@ void QVideoInputDevice::grabFrame()
|
|||
uint32_t encoded_size ;
|
||||
|
||||
_video_processor->processImage(image,0,encoded_size) ;
|
||||
|
||||
#ifdef DEBUG_VIDEO_OUTPUT_DEVICE
|
||||
std::cerr << "Encoded size = " << encoded_size << std::endl;
|
||||
#endif
|
||||
_total_encoded_size += encoded_size ;
|
||||
|
||||
time_t now = time(NULL) ;
|
||||
|
@ -96,7 +97,9 @@ void QVideoInputDevice::grabFrame()
|
|||
_total_encoded_size = 0 ;
|
||||
_last_bw_estimate_TS = now ;
|
||||
|
||||
#ifdef DEBUG_VIDEO_OUTPUT_DEVICE
|
||||
std::cerr << "new bw estimate: " << _estimated_bw << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
emit networkPacketReady() ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue