Skip to content
Snippets Groups Projects
Commit 6affe40e authored by Patrick Godwin's avatar Patrick Godwin
Browse files

muxcollectpads.c: fixed typo in chain causing bpf (bytes per frame) to be set...

muxcollectpads.c: fixed typo in chain causing bpf (bytes per frame) to be set incorrectly in gst_audio_buffer_clip
parent 66459b77
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ static GstFlowReturn chain(GstPad *pad, GstObject *parent, GstBuffer *buffer)
if(collectpads->clip_to_segments) {
gint rate, bpf;
GST_DEBUG_OBJECT(pad, "clipping to [%" G_GUINT64_FORMAT ", %" G_GUINT64_FORMAT ")", collectpads->segment.start, collectpads->segment.stop);
g_object_get(data->queue, "rate", &rate, "size", &bpf, NULL);
g_object_get(data->queue, "rate", &rate, "unit-size", &bpf, NULL);
buffer = gst_audio_buffer_clip(buffer, &collectpads->segment, rate, bpf);
}
if(buffer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment