From f4f76bc9d69bf7d1a8e2c276822c02ff3f6802ee Mon Sep 17 00:00:00 2001
From: Lawrence Rust <lvr@softsystem.co.uk>
Date: Fri, 9 Aug 2013 13:53:29 +0100
Subject: [PATCH 174/193] Player: Delete decoder after decoder thread stopped
It is important to delete the decoder in DecoderEnd to ensure that any
threads allocated by the Ffmpeg decoder are stopped before the video
buffers are deallocated. If not then random crashes can be observed
when exiting playback of H264 encoded material if CPUs are > 1.
Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk>
---
mythtv/libs/libmythtv/mythplayer.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index b5f9e6e..87955d3 100644
a
|
b
|
void MythPlayer::DecoderEnd(void) |
3166 | 3166 | LOG(VB_GENERAL, LOG_ERR, LOC + "Failed to stop decoder loop."); |
3167 | 3167 | else |
3168 | 3168 | LOG(VB_PLAYBACK, LOG_INFO, LOC + "Exited decoder loop."); |
| 3169 | SetDecoder(NULL); |
3169 | 3170 | } |
3170 | 3171 | |
3171 | 3172 | void MythPlayer::DecoderPauseCheck(void) |