aggregator: fix type for latency property (int64 -> GStClockTime)
The value is used as GstClockTiem in the code. Adapt the hack^H^H^H^Hcode in live-adder.
This commit is contained in:
parent
c2b462837b
commit
8f4479b874
@ -837,9 +837,9 @@ gst_live_adder_set_property (GObject * object, guint prop_id,
|
|||||||
GObjectClass *pspec_class = g_type_class_peek (parent_spec->owner_type);
|
GObjectClass *pspec_class = g_type_class_peek (parent_spec->owner_type);
|
||||||
GValue v = { 0 };
|
GValue v = { 0 };
|
||||||
|
|
||||||
g_value_init (&v, G_TYPE_INT64);
|
g_value_init (&v, G_TYPE_UINT64);
|
||||||
|
|
||||||
g_value_set_int64 (&v, g_value_get_uint (value) * GST_MSECOND);
|
g_value_set_uint64 (&v, g_value_get_uint (value) * GST_MSECOND);
|
||||||
|
|
||||||
G_OBJECT_CLASS (pspec_class)->set_property (object,
|
G_OBJECT_CLASS (pspec_class)->set_property (object,
|
||||||
parent_spec->param_id, &v, parent_spec);
|
parent_spec->param_id, &v, parent_spec);
|
||||||
@ -864,12 +864,12 @@ gst_live_adder_get_property (GObject * object, guint prop_id, GValue * value,
|
|||||||
GObjectClass *pspec_class = g_type_class_peek (parent_spec->owner_type);
|
GObjectClass *pspec_class = g_type_class_peek (parent_spec->owner_type);
|
||||||
GValue v = { 0 };
|
GValue v = { 0 };
|
||||||
|
|
||||||
g_value_init (&v, G_TYPE_INT64);
|
g_value_init (&v, G_TYPE_UINT64);
|
||||||
|
|
||||||
G_OBJECT_CLASS (pspec_class)->get_property (object,
|
G_OBJECT_CLASS (pspec_class)->get_property (object,
|
||||||
parent_spec->param_id, &v, parent_spec);
|
parent_spec->param_id, &v, parent_spec);
|
||||||
|
|
||||||
g_value_set_uint (value, g_value_get_int64 (&v) / GST_MSECOND);
|
g_value_set_uint (value, g_value_get_uint64 (&v) / GST_MSECOND);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user