Commit ada76ca1 authored by Guillaume Roguez's avatar Guillaume Roguez

debug: remove too noisy log prints

This patch removes not needed logs line that's bring nothing
for the debug.

Change-Id: Ic8539f8a980bf3df85c1e0339ce5d93fb6590fad
Tuleap: #229
parent 9067190f
......@@ -303,10 +303,8 @@ RingBuffer::discard(size_t toDiscard)
for (auto & r : readoffsets_) {
size_t dst = (r.second + buffer_size - endPos_) % buffer_size;
if (dst < toDiscard) {
RING_DBG("%s : discarding: %zu frames", r.first.c_str(), toDiscard - dst);
if (dst < toDiscard)
r.second = (r.second + toDiscard - dst) % buffer_size;
}
}
return toDiscard;
}
......
......@@ -62,10 +62,8 @@ VideoSender::encodeAndSendVideo(VideoFrame& input_frame)
bool is_keyframe = forceKeyFrame_ > 0 \
or (keyFrameFreq_ > 0 and (frameNumber_ % keyFrameFreq_) == 0);
if (is_keyframe) {
RING_DBG("keyframe requested");
if (is_keyframe)
--forceKeyFrame_;
}
if (videoEncoder_->encode(input_frame, is_keyframe, frameNumber_++) < 0)
RING_ERR("encoding failed");
......@@ -81,6 +79,7 @@ VideoSender::update(Observable<std::shared_ptr<VideoFrame> >* /*obs*/,
void
VideoSender::forceKeyFrame()
{
RING_DBG("keyframe requested");
++forceKeyFrame_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment