gnome-subtitles r1111 - trunk/src/External/GStreamerPlaybin



Author: pcastro
Date: Sat Jan  3 02:25:22 2009
New Revision: 1111
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1111&view=rev

Log:
Allow to return the video position when the video is loaded, but not 
playing or paused.


Modified:
   trunk/src/External/GStreamerPlaybin/Engine.cs

Modified: trunk/src/External/GStreamerPlaybin/Engine.cs
==============================================================================
--- trunk/src/External/GStreamerPlaybin/Engine.cs	(original)
+++ trunk/src/External/GStreamerPlaybin/Engine.cs	Sat Jan  3 02:25:22 2009
@@ -251,7 +251,7 @@
 		{
 			get
 			{
-				if (!isPlaying && !isPaused)
+				if (isUnloaded)
 					return TimeSpan.Zero;
 				
 				double pos = (double) gst_binding_get_position (engine);
@@ -463,7 +463,6 @@
 		
 		// private convenience properties
 		bool isPlaying { get{ return status == MediaStatus.Playing; } }
-		bool isPaused { get{ return status == MediaStatus.Paused; } }
 		bool isUnloaded { get{ return status == MediaStatus.Unloaded; } }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]