All pastes #450286 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-20 18:53 UTC
rendered paste body
Index: mythmusic/mythmusic/playbackbox.cpp
===================================================================
--- mythmusic/mythmusic/playbackbox.cpp (revision 13293)
+++ mythmusic/mythmusic/playbackbox.cpp (working copy)
@@ -1170,9 +1170,12 @@
         input = new QFile(playfile);

     if (decoder && !decoder->factory()->supports(sourcename))
+    {
+        decoder->removeListener(this);
         decoder = 0;
+    }

-    if (!decoder)
+    if (!decoder)
     {
         decoder = Decoder::create(sourcename, input, output);