mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
s/G_MINFLOAT/G_MAXFLOAT unref the buffer pool in the loop func
Original commit message from CVS: s/G_MINFLOAT/G_MAXFLOAT unref the buffer pool in the loop func
This commit is contained in:
parent
ba7bac3955
commit
826f1e165f
1 changed files with 3 additions and 1 deletions
|
@ -228,7 +228,7 @@ gst_ladspa_class_init (GstLADSPAClass *klass)
|
||||||
desc->PortRangeHints[current_portnum].LowerBound;
|
desc->PortRangeHints[current_portnum].LowerBound;
|
||||||
} else {
|
} else {
|
||||||
if (argtype==G_TYPE_INT) klass->control_info[i].lowerbound = (gfloat)G_MININT;
|
if (argtype==G_TYPE_INT) klass->control_info[i].lowerbound = (gfloat)G_MININT;
|
||||||
if (argtype==G_TYPE_FLOAT) klass->control_info[i].lowerbound = -G_MINFLOAT;
|
if (argtype==G_TYPE_FLOAT) klass->control_info[i].lowerbound = -G_MAXFLOAT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LADSPA_IS_HINT_BOUNDED_ABOVE(hintdesc)) {
|
if (LADSPA_IS_HINT_BOUNDED_ABOVE(hintdesc)) {
|
||||||
|
@ -856,6 +856,8 @@ gst_ladspa_loop(GstElement *element)
|
||||||
ladspa->timestamp += ladspa->buffersize * 10^9 / ladspa->samplerate;
|
ladspa->timestamp += ladspa->buffersize * 10^9 / ladspa->samplerate;
|
||||||
} while (TRUE);
|
} while (TRUE);
|
||||||
|
|
||||||
|
gst_buffer_pool_unref(bufpool);
|
||||||
|
|
||||||
for (i=0 ; i<numsinkpads ; i++){
|
for (i=0 ; i<numsinkpads ; i++){
|
||||||
gst_bytestream_destroy (bytestreams[i]);
|
gst_bytestream_destroy (bytestreams[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue