dashdemux: Fix issue with get returning a value for max-buffering-time
authorArthur Shipkowski <art@videon-central.com>
Mon, 6 May 2013 20:56:01 +0000 (16:56 -0400)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Sat, 8 Jun 2013 01:58:33 +0000 (22:58 -0300)
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

ext/dash/gstdashdemux.c

index 288e9ce..3e81a26 100644 (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);