[PATCH] mp3-0.9.11 signals end of replay too late

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

 



Graphlcd crashes with segfault when stopping an MP3 replay because it
calls cMP3Control::GetIndex after the MP3 player object is already
destroyed.

Reason: MP3 plugin signals end of replay too late. The attaches patch
fixes it.

===================================================================
--- mp3.c       (Revision 228)
+++ mp3.c       (Arbeitskopie)
@@ -261,10 +261,10 @@

 cMP3Control::~cMP3Control()
 {
+  cStatus::MsgReplaying(this, NULL);
   delete lastMode;
   Hide();
   Stop();
-  cStatus::MsgReplaying(this, NULL);
 }

 void cMP3Control::Stop(void)




[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux