Skip to content

Commit

Permalink
MythMusic: Fix a segfault introduced by the ffmpeg resync
Browse files Browse the repository at this point in the history
We now need to explicitly create m_inputContext otherwise there is a segfault
when playing a shoutcast stream.
(cherry picked from commit 4f1962a)

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information
Paul Harrison authored and Beirdo committed May 13, 2012
1 parent 922a9ca commit 4762bb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mythplugins/mythmusic/mythmusic/avfdecoder.cpp
Expand Up @@ -143,6 +143,11 @@ bool avfDecoder::initialize()


m_inputIsFile = !input()->isSequential(); m_inputIsFile = !input()->isSequential();


if (m_inputContext)
avformat_free_context(m_inputContext);

m_inputContext = avformat_alloc_context();

// open device // open device
if (m_inputIsFile) if (m_inputIsFile)
{ {
Expand Down

0 comments on commit 4762bb7

Please sign in to comment.