Author: rolf
Date: 2008-01-25 13:12:20 -0500 (Fri, 25 Jan 2008)
New Revision: 93936
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/media.cpp
Log:
* media.cpp: Initialize play_pending, and when buffering is finished,
only play if autoplay or play_pending is true.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-01-25 18:09:24 UTC (rev 93935)
+++ trunk/moon/src/ChangeLog 2008-01-25 18:12:20 UTC (rev 93936)
@@ -1,3 +1,8 @@
+2008-01-25 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * media.cpp: Initialize play_pending, and when buffering is finished,
only
+ play if autoplay or play_pending is true.
+
2008-01-25 Jeffrey Stedfast <[EMAIL PROTECTED]>
* mplayer.cpp: Get rid of some unused variables and cleaned up
Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp 2008-01-25 18:09:24 UTC (rev 93935)
+++ trunk/moon/src/media.cpp 2008-01-25 18:12:20 UTC (rev 93936)
@@ -455,6 +455,7 @@
part_name = NULL;
mplayer = NULL;
loaded = false;
+ play_pending = false;
Cleanup ();
@@ -788,6 +789,11 @@
switch (previous_state) {
case Opening: // Start playback
+ if (media_element_get_auto_play (this) || play_pending)
+ Play ();
+ else
+ Pause ();
+ return;
case Playing: // Restart playback
Play ();
return;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches