[media] Add sub-second resolution for the duration
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 24 Feb 2009 16:16:25 +0000 (16:16 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 24 Feb 2009 16:22:02 +0000 (16:22 +0000)
commitbff6ce414af6cc3e5d12d9eaed36ff64e5e16fc0
treec4367c966aad54f136f618b1409bb59bf36716e5
parentdd3c760cc5ef26378ac71d9b33ed961ebc542ab8
[media] Add sub-second resolution for the duration

The duration in ClutterMedia is currently expressed in integer multiples
of a second. This does not offer enough granularity for media playback
that has fractionary durations -- 2.3 seconds; 1 minute, 23.4 seconds;
1 hour, 23 minutes, 4.5 seconds; etc.

The duration value should be expressed in seconds with a sub-second
granularity; for this reason, a double should be used insted of an
unsigned integer.

The semantics haven't changed: the :duration property still exposes
seconds.
clutter/clutter-media.c
clutter/clutter-media.h