Author: toshok
Date: 2008-02-06 13:08:43 -0500 (Wed, 06 Feb 2008)
New Revision: 95059
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/uielement.cpp
Log:
2008-02-06 Chris Toshok <[EMAIL PROTECTED]>
* uielement.cpp (UIElement::FrontToBack): make sure
media_element_get_current_state != NULL before we strcmp it.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-02-06 18:00:07 UTC (rev 95058)
+++ trunk/moon/src/ChangeLog 2008-02-06 18:08:43 UTC (rev 95059)
@@ -1,3 +1,8 @@
+2008-02-06 Chris Toshok <[EMAIL PROTECTED]>
+
+ * uielement.cpp (UIElement::FrontToBack): make sure
+ media_element_get_current_state != NULL before we strcmp it.
+
2008-02-06 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* src.mdp: Updated.
Modified: trunk/moon/src/uielement.cpp
===================================================================
--- trunk/moon/src/uielement.cpp 2008-02-06 18:00:07 UTC (rev 95058)
+++ trunk/moon/src/uielement.cpp 2008-02-06 18:08:43 UTC (rev 95059)
@@ -521,7 +521,8 @@
if (subtract) {
if (Is (Type::MEDIAELEMENT)) {
MediaElement *me = (MediaElement*)this;
- subtract = (strcmp
(media_element_get_current_state (me), "Buffering")
+ subtract = (media_element_get_current_state (me)
+ && strcmp
(media_element_get_current_state (me), "Buffering")
&& me->mplayer
&& me->mplayer->rendered_frame
&& ((me->mplayer->width ==
me->GetBounds().w
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches