Skip to content

Commit

Permalink
Refs #2557
Browse files Browse the repository at this point in the history
Backports fix to -fixes.

Avoids segfault in mythmusic when files of different types (decoders) are used in a playlist.



git-svn-id: http://svn.mythtv.org/svn/branches/release-0-20-fixes@13307 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
stuartm committed Apr 22, 2007
1 parent 53bc7a8 commit 8d8e1f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythplugins/mythmusic/mythmusic/playbackbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,12 @@ void PlaybackBoxMusic::play()
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);

Expand Down

0 comments on commit 8d8e1f3

Please sign in to comment.