[xiph-commits] r7980 - trunk/oggdsf/src/tools/DNPlay

illiminable at motherfish-iii.xiph.org illiminable at motherfish-iii.xiph.org
Mon Oct 11 07:52:40 PDT 2004


Author: illiminable
Date: 2004-10-11 07:52:40 -0700 (Mon, 11 Oct 2004)
New Revision: 7980

Modified:
   trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs
Log:
* Don't attempt to do progress bar when stream is non-seekable.
* Definately need to do some prebuffering, the .NET player gets drowned with "starvation" messages.

Modified: trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs
===================================================================
--- trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs	2004-10-11 14:27:45 UTC (rev 7979)
+++ trunk/oggdsf/src/tools/DNPlay/frmDNPlay.cs	2004-10-11 14:52:40 UTC (rev 7980)
@@ -84,7 +84,7 @@
 		{
 			double locProgRatio = 0;
 			Int32 locProgWidth = 0;
-			if (mFileDuration != 0) 
+			if (mFileDuration > 0) 
 			{
 				try 
 				{
@@ -93,6 +93,8 @@
 				} 
 				catch (System.OverflowException)
 				{
+					//MessageBox.Show(mFileDuration.ToString());
+					
 				    locProgWidth = 0;
 				}
 			}



More information about the commits mailing list