This commit is contained in:
Andreas 2015-03-14 15:38:17 +01:00
parent 509b28aaeb
commit 8e3fa5552a
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ bool MediaPipeline::Init(int sample_rate, int channels) {
// Set size
byte_rate_ = quint64(sample_rate) * channels * 2;
const quint64 bytes = 2* byte_rate_ * length_msec_ / 1000;
const quint64 bytes = byte_rate_ * length_msec_ / 1000;
gst_app_src_set_size(appsrc_, bytes);
// Ready to go