gnome-subtitles r1112 - trunk/src/GnomeSubtitles/Ui/VideoPreview
- From: pcastro svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-subtitles r1112 - trunk/src/GnomeSubtitles/Ui/VideoPreview
- Date: Sat, 3 Jan 2009 03:23:55 +0000 (UTC)
Author: pcastro
Date: Sat Jan 3 03:23:55 2009
New Revision: 1112
URL: http://svn.gnome.org/viewvc/gnome-subtitles?rev=1112&view=rev
Log:
Fixed problem with the video position not being correctly updated when
the video was in the Loaded state (before playing or paused).
Modified:
trunk/src/GnomeSubtitles/Ui/VideoPreview/Player.cs
trunk/src/GnomeSubtitles/Ui/VideoPreview/Video.cs
Modified: trunk/src/GnomeSubtitles/Ui/VideoPreview/Player.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Ui/VideoPreview/Player.cs (original)
+++ trunk/src/GnomeSubtitles/Ui/VideoPreview/Player.cs Sat Jan 3 03:23:55 2009
@@ -165,17 +165,11 @@
}
private void OnPlaybinStateChanged (StateEventArgs args) {
- switch (args.State) {
- case MediaStatus.Playing:
- position.Start();
- break;
- case MediaStatus.Paused:
- position.Start();
- break;
- default:
- position.Stop();
- break;
- }
+ if (args.State == MediaStatus.Unloaded)
+ position.Stop();
+ else
+ position.Start();
+
if (StateChanged != null)
StateChanged(args);
Modified: trunk/src/GnomeSubtitles/Ui/VideoPreview/Video.cs
==============================================================================
--- trunk/src/GnomeSubtitles/Ui/VideoPreview/Video.cs (original)
+++ trunk/src/GnomeSubtitles/Ui/VideoPreview/Video.cs Sat Jan 3 03:23:55 2009
@@ -97,7 +97,6 @@
if (!isLoaded)
return;
- System.Console.WriteLine("Closing...");
isLoaded = false;
player.Close();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]