r86280 - trunk/moon/src

0 views
Skip to first unread message

Jb Evain (jbevain@gmail.com)

unread,
Sep 24, 2007, 3:18:48 PM9/24/07
to mono-p...@lists.ximian.com, ximian....@gmail.com, mono-svn-patche...@googlegroups.com
Author: jbevain
Date: 2007-09-24 15:18:48 -0400 (Mon, 24 Sep 2007)
New Revision: 86280

Modified:
trunk/moon/src/media.cpp
trunk/moon/src/playlist.cpp
Log:
invalidate MediaElement on SingleMedia::Play

Modified: trunk/moon/src/media.cpp
===================================================================
--- trunk/moon/src/media.cpp 2007-09-24 18:47:39 UTC (rev 86279)
+++ trunk/moon/src/media.cpp 2007-09-24 19:18:48 UTC (rev 86280)
@@ -131,8 +131,6 @@
media_element_set_natural_video_height (element, mplayer->height);
media_element_set_natural_video_width (element, mplayer->width);

- media_element_set_current_state (element, "Buffering");
-
element->Emit (MediaElement::MediaOpenedEvent);
return true;
}
@@ -178,6 +176,7 @@
void
SingleMedia::Play ()
{
+ element->Invalidate ();
advance_frame_timeout_id = element->mplayer->Play (media_element_advance_frame, element);
media_element_set_current_state (element, "Playing");
}

Modified: trunk/moon/src/playlist.cpp
===================================================================
--- trunk/moon/src/playlist.cpp 2007-09-24 18:47:39 UTC (rev 86279)
+++ trunk/moon/src/playlist.cpp 2007-09-24 19:18:48 UTC (rev 86280)
@@ -65,6 +65,8 @@
return;

OpenEntry (dynamic_cast<PlaylistEntry *> (current_entry->next));
+ if (HasMediaSource ())
+ current_entry->GetSource ()->Play ();
}

void
@@ -198,8 +200,6 @@
if (!HasMediaSource ())
return;

- element->Invalidate ();
-
current_entry->GetSource ()->Play ();
}

Reply all
Reply to author
Forward
0 new messages