mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
interpolationcontrolsource: Add const qualifiers to values in the _set functions
The values are not modified and are copied, a const before the parameter should make this even more obvious.
This commit is contained in:
parent
4f840e05fd
commit
82f380704a
2 changed files with 7 additions and 7 deletions
|
@ -421,7 +421,7 @@ gst_control_point_find (gconstpointer p1, gconstpointer p2)
|
||||||
|
|
||||||
static GstControlPoint *
|
static GstControlPoint *
|
||||||
_make_new_cp (GstInterpolationControlSource * self, GstClockTime timestamp,
|
_make_new_cp (GstInterpolationControlSource * self, GstClockTime timestamp,
|
||||||
GValue * value)
|
const GValue * value)
|
||||||
{
|
{
|
||||||
GstControlPoint *cp;
|
GstControlPoint *cp;
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ _make_new_cp (GstInterpolationControlSource * self, GstClockTime timestamp,
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_interpolation_control_source_set_internal (GstInterpolationControlSource *
|
gst_interpolation_control_source_set_internal (GstInterpolationControlSource *
|
||||||
self, GstClockTime timestamp, GValue * value)
|
self, GstClockTime timestamp, const GValue * value)
|
||||||
{
|
{
|
||||||
GSequenceIter *iter;
|
GSequenceIter *iter;
|
||||||
|
|
||||||
|
@ -486,7 +486,7 @@ done:
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_interpolation_control_source_set (GstInterpolationControlSource * self,
|
gst_interpolation_control_source_set (GstInterpolationControlSource * self,
|
||||||
GstClockTime timestamp, GValue * value)
|
GstClockTime timestamp, const GValue * value)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GST_IS_INTERPOLATION_CONTROL_SOURCE (self), FALSE);
|
g_return_val_if_fail (GST_IS_INTERPOLATION_CONTROL_SOURCE (self), FALSE);
|
||||||
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (timestamp), FALSE);
|
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (timestamp), FALSE);
|
||||||
|
@ -511,9 +511,9 @@ gst_interpolation_control_source_set (GstInterpolationControlSource * self,
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
gst_interpolation_control_source_set_from_list (GstInterpolationControlSource *
|
gst_interpolation_control_source_set_from_list (GstInterpolationControlSource *
|
||||||
self, GSList * timedvalues)
|
self, const GSList * timedvalues)
|
||||||
{
|
{
|
||||||
GSList *node;
|
const GSList *node;
|
||||||
GstTimedValue *tv;
|
GstTimedValue *tv;
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
|
|
||||||
|
|
|
@ -97,8 +97,8 @@ GType gst_interpolation_control_source_get_type (void);
|
||||||
|
|
||||||
GstInterpolationControlSource *gst_interpolation_control_source_new (void);
|
GstInterpolationControlSource *gst_interpolation_control_source_new (void);
|
||||||
gboolean gst_interpolation_control_source_set_interpolation_mode (GstInterpolationControlSource *self, GstInterpolateMode mode);
|
gboolean gst_interpolation_control_source_set_interpolation_mode (GstInterpolationControlSource *self, GstInterpolateMode mode);
|
||||||
gboolean gst_interpolation_control_source_set (GstInterpolationControlSource * self, GstClockTime timestamp, GValue * value);
|
gboolean gst_interpolation_control_source_set (GstInterpolationControlSource * self, GstClockTime timestamp, const GValue * value);
|
||||||
gboolean gst_interpolation_control_source_set_from_list (GstInterpolationControlSource * self, GSList * timedvalues);
|
gboolean gst_interpolation_control_source_set_from_list (GstInterpolationControlSource * self, const GSList * timedvalues);
|
||||||
gboolean gst_interpolation_control_source_unset (GstInterpolationControlSource * self, GstClockTime timestamp);
|
gboolean gst_interpolation_control_source_unset (GstInterpolationControlSource * self, GstClockTime timestamp);
|
||||||
void gst_interpolation_control_source_unset_all (GstInterpolationControlSource *self);
|
void gst_interpolation_control_source_unset_all (GstInterpolationControlSource *self);
|
||||||
GList *gst_interpolation_control_source_get_all (GstInterpolationControlSource * self);
|
GList *gst_interpolation_control_source_get_all (GstInterpolationControlSource * self);
|
||||||
|
|
Loading…
Reference in a new issue