gnome-subtitles r1057 - trunk/src/GnomeSubtitles/Ui/VideoPreview
- From: pcastro svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-subtitles r1057 - trunk/src/GnomeSubtitles/Ui/VideoPreview
- Date: Fri, 3 Oct 2008 23:02:15 +0000 (UTC)
Author: pcastro
Date: Fri Oct 3 23:02:15 2008
New Revision: 1057
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1057&view=rev
Log:
Allow to return the length in time and frames.
Modified:
trunk/src/GnomeSubtitles/Ui/VideoPreview/VideoPosition.cs
Modified: trunk/src/GnomeSubtitles/Ui/VideoPreview/VideoPosition.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Ui/VideoPreview/VideoPosition.cs (original)
+++ trunk/src/GnomeSubtitles/Ui/VideoPreview/VideoPosition.cs Fri Oct 3 23:02:15 2008
@@ -73,6 +73,14 @@
get { return Convert.ToInt32(Synchronization.TimeToFrames(position, player.FrameRate)); }
}
+ public TimeSpan Length {
+ get { return player.Length; }
+ }
+
+ public int LengthInFrames {
+ get { return Convert.ToInt32(Synchronization.TimeToFrames(player.Length, player.FrameRate)); }
+ }
+
/* Public methods */
public void Disable () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]