Author: rolf
Date: 2007-10-10 14:08:27 -0400 (Wed, 10 Oct 2007)
New Revision: 87288

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/media.cpp
Log:
* media.cpp: When updating the MediaElement's progress, get the
  Downloader's DownloadProgressProperty.

Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-10-10 17:59:54 UTC (rev 87287)
+++ trunk/moon/src/ChangeLog    2007-10-10 18:08:27 UTC (rev 87288)
@@ -1,5 +1,10 @@
 2007-10-10  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
+       * media.cpp: When updating the MediaElement's progress, get the 
Downloader's
+         DownloadProgressProperty.
+
+2007-10-10  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
        * visual.cpp, visual.h: Added visual_set_surface, and guard against
          overwriting a set surface with null.
 

Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp    2007-10-10 17:59:54 UTC (rev 87287)
+++ trunk/moon/src/media.cpp    2007-10-10 18:08:27 UTC (rev 87288)
@@ -399,7 +399,7 @@
 void
 MediaElement::UpdateProgress ()
 {
-       double progress = downloader->GetValue 
(DownloadProgressProperty)->AsDouble ();
+       double progress = downloader->GetValue 
(Downloader::DownloadProgressProperty)->AsDouble ();
        
        SetValue (MediaElement::DownloadProgressProperty, Value (progress));
        
@@ -412,7 +412,7 @@
 void 
 MediaElement::DataWrite (guchar *buf, gsize offset, gsize count)
 {
-       double progress = downloader->GetValue 
(DownloadProgressProperty)->AsDouble ();
+       double progress = downloader->GetValue 
(Downloader::DownloadProgressProperty)->AsDouble ();
        
        // Delay the propogating progress 1.0 until
        // the downloader has notified us it is done.

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to