mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
Fix setting of int and int64 dparams. Fixes #124023
Original commit message from CVS: Fix setting of int and int64 dparams. Fixes #124023
This commit is contained in:
parent
40fe161510
commit
9d632588f0
1 changed files with 3 additions and 3 deletions
|
@ -154,11 +154,11 @@ gst_dparam_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
|
|||
break;
|
||||
|
||||
case ARG_VALUE_INT:
|
||||
g_value_set_float (value, dparam->value_int);
|
||||
g_value_set_int (value, dparam->value_int);
|
||||
break;
|
||||
|
||||
case ARG_VALUE_INT64:
|
||||
g_value_set_float (value, dparam->value_int64);
|
||||
g_value_set_int64 (value, dparam->value_int64);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
@ -194,7 +194,7 @@ gst_dparam_set_property (GObject *object, guint prop_id, const GValue *value, GP
|
|||
G_GINT64_FORMAT " to %"
|
||||
G_GINT64_FORMAT,
|
||||
dparam->value_int64, g_value_get_int64 (value));
|
||||
dparam->value_int64 = g_value_get_int (value);
|
||||
dparam->value_int64 = g_value_get_int64 (value);
|
||||
GST_DPARAM_NEXT_UPDATE_TIMESTAMP(dparam) = GST_DPARAM_LAST_UPDATE_TIMESTAMP(dparam);
|
||||
GST_DPARAM_READY_FOR_UPDATE(dparam) = TRUE;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue