mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
audiomixer: critical error for blocksize, timeout min/max values
Audiomixer blocksize, cant be 0, hence adjusting the minimum value to 1 timeout value of aggregator is defined with MAX of MAXINT64, but it cannot cross G_MAXLONG * GST_SECOND - 1 Hence changed the max value of the same https://bugzilla.gnome.org/show_bug.cgi?id=738845
This commit is contained in:
parent
73a484d500
commit
aec1f2a001
2 changed files with 3 additions and 3 deletions
|
@ -1420,8 +1420,8 @@ gst_aggregator_class_init (GstAggregatorClass * klass)
|
||||||
g_param_spec_int64 ("timeout", "Buffer timeout",
|
g_param_spec_int64 ("timeout", "Buffer timeout",
|
||||||
"Number of nanoseconds to wait for a buffer to arrive on a sink pad"
|
"Number of nanoseconds to wait for a buffer to arrive on a sink pad"
|
||||||
"before the pad is deemed unresponsive (-1 unlimited)", -1,
|
"before the pad is deemed unresponsive (-1 unlimited)", -1,
|
||||||
G_MAXINT64, DEFAULT_TIMEOUT,
|
(G_MAXLONG == G_MAXINT64) ? G_MAXINT64 : (G_MAXLONG * GST_SECOND - 1),
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -791,7 +791,7 @@ gst_audiomixer_class_init (GstAudioMixerClass * klass)
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class, PROP_BLOCKSIZE,
|
g_object_class_install_property (gobject_class, PROP_BLOCKSIZE,
|
||||||
g_param_spec_uint ("blocksize", "Block Size",
|
g_param_spec_uint ("blocksize", "Block Size",
|
||||||
"Output block size in number of samples", 0,
|
"Output block size in number of samples", 1,
|
||||||
G_MAXUINT, DEFAULT_BLOCKSIZE,
|
G_MAXUINT, DEFAULT_BLOCKSIZE,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue