[Muine] WriteAlbumCoverToFile bug
- From: Mark McLauchlan <mrm21 sussex ac uk>
- To: muine-list gnome org
- Subject: [Muine] WriteAlbumCoverToFile bug
- Date: Fri, 14 Jan 2005 18:32:16 +0000
Hi all
I've been playing around with the DBus interface, and it looks pretty
good. One small bug: Muine crashed if you called WriteAlbumCoverToFile
when the playlist was empty. I've attached a patch against version 0.8.
Thanks
Mark
diff -ruN muine-0.8.0/DBusLib/Player.cs muine-updated/DBusLib/Player.cs
--- muine-0.8.0/DBusLib/Player.cs 2005-01-07 13:49:40.000000000 +0000
+++ muine-updated/DBusLib/Player.cs 2005-01-14 18:28:36.894568160 +0000
@@ -168,7 +168,7 @@
[Method]
public virtual bool WriteAlbumCoverToFile (string file)
{
- if (player.PlayingSong.CoverImage == null)
+ if (player.PlayingSong == null || player.PlayingSong.CoverImage == null)
return false;
try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]