Author: fejj
Date: 2008-01-25 17:34:09 -0500 (Fri, 25 Jan 2008)
New Revision: 93964

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/media.cpp
Log:
2008-01-25  Jeffrey Stedfast  <[EMAIL PROTECTED]>

        * media.cpp (TryOpen): When download is complete and we
        successfully open the media, don't set the state to Paused - this
        breaks Halo3 if the video is cached.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-01-25 22:24:01 UTC (rev 93963)
+++ trunk/moon/src/ChangeLog    2008-01-25 22:34:09 UTC (rev 93964)
@@ -1,5 +1,9 @@
 2008-01-25  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
+       * media.cpp (TryOpen): When download is complete and we
+       successfully open the media, don't set the state to Paused - this
+       breaks Halo3 if the video is cached.
+
        * media.cpp|h: Consolidated all of the bool state variables into a
        single bitfield.
 

Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp    2008-01-25 22:24:01 UTC (rev 93963)
+++ trunk/moon/src/media.cpp    2008-01-25 22:34:09 UTC (rev 93964)
@@ -142,10 +142,10 @@
        media_element_set_natural_duration (element, Duration 
(mplayer->Duration () * TIMESPANTICKS_IN_SECOND / 1000));
        media_element_set_natural_video_height (element, mplayer->height);
        media_element_set_natural_video_width (element, mplayer->width);
+       
+       return true;
 */
        return false;
-
-       return true;
 }
 
 MediaSource *
@@ -863,8 +863,6 @@
                if (MEDIA_SUCCEEDED (source->Initialize ())) {
                        if (MEDIA_SUCCEEDED (media->Open (source))) {
                                MediaOpened (media);
-                               SetState (Paused);
-                               //printf ("MediaElement::TryOpen (): download 
is complete and media opened successfully.\n");
                                
                                if ((flags & PlayRequested) || 
media_element_get_auto_play (this)) {
                                        //printf ("MediaElement::TryOpen (): 
we'll now start playing.\n");

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

Reply via email to