banshee r5126 - in trunk/banshee: . src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue



Author: gburt
Date: Mon Mar  9 22:55:22 2009
New Revision: 5126
URL: http://svn.gnome.org/viewvc/banshee?rev=5126&view=rev

Log:
2009-03-09  Gabriel Burt  <gabriel burt gmail com>

	* src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs:
	Don't switch to the FSQ source when some files are loaded if the playing
	item is a video (BGO #570382)

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs

Modified: trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs	Mon Mar  9 22:55:22 2009
@@ -141,7 +141,11 @@
                     importer.Finished += delegate {
                         if (visible) {
                             Banshee.Base.ThreadAssist.ProxyToMain (delegate {
-                                ServiceManager.SourceManager.SetActiveSource (this);
+                                TrackInfo current_track = ServiceManager.PlaybackController.CurrentTrack;
+                                // Don't switch to FSQ if the current item is a video
+                                if (current_track == null || !current_track.HasAttribute (TrackMediaAttributes.VideoStream)) {
+                                	ServiceManager.SourceManager.SetActiveSource (this);
+                                }
                             });
                         }
                     };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]