dashdemux: Fix issue with get returning a value for max-buffering-time

It was not properly divided by GST_SECONDS. Also fix issue with
max-buffering-time being multiplied by GST_SECONDS every time the
property is retrieved.

https://bugzilla.gnome.org/show_bug.cgi?id=700487
This commit is contained in:
Arthur Shipkowski 2013-05-06 16:56:01 -04:00 committed by Thiago Santos
parent c383dd6420
commit 3d50af3e4b

View file

@ -381,8 +381,7 @@ gst_dash_demux_get_property (GObject * object, guint prop_id, GValue * value,
switch (prop_id) {
case PROP_MAX_BUFFERING_TIME:
g_value_set_uint (value, demux->max_buffering_time);
demux->max_buffering_time *= GST_SECOND;
g_value_set_uint (value, demux->max_buffering_time / GST_SECOND);
break;
case PROP_BANDWIDTH_USAGE:
g_value_set_float (value, demux->bandwidth_usage);