Author: fejj
Date: 2007-08-27 17:08:18 -0400 (Mon, 27 Aug 2007)
New Revision: 84918
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/mplayer.cpp
Log:
2007-08-27 Jeffrey Stedfast <[EMAIL PROTECTED]>
* mplayer.cpp (Play): Always add a timeout, even for audio-only
media, so that the callback can check if the media has ended and
emit the MediaEnded event.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-08-27 20:25:31 UTC (rev 84917)
+++ trunk/moon/src/ChangeLog 2007-08-27 21:08:18 UTC (rev 84918)
@@ -1,5 +1,9 @@
2007-08-27 Jeffrey Stedfast <[EMAIL PROTECTED]>
+ * mplayer.cpp (Play): Always add a timeout, even for audio-only
+ media, so that the callback can check if the media has ended and
+ emit the MediaEnded event.
+
* media.cpp (AdvanceFrame): Emit the MediaEndedEvent.
* mplayer.cpp (MediaEnded): New convenience function.
Modified: trunk/moon/src/mplayer.cpp
===================================================================
--- trunk/moon/src/mplayer.cpp 2007-08-27 20:25:31 UTC (rev 84917)
+++ trunk/moon/src/mplayer.cpp 2007-08-27 21:08:18 UTC (rev 84918)
@@ -533,6 +533,8 @@
if (video->stream_id != -1)
return g_timeout_add (video->msec_per_frame, callback,
user_data);
+ else
+ return g_timeout_add (33, callback, user_data);
return 0;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches