Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the use of player_ctx in mythtranscode to QPointer<>
We have far too many places in the transcode code path that delete player_ctx and return. Unfortunately, freeing "transcode" also will try to delee player_ctx, but it's already deleted, and not nulled out. Rather than putting many instances of "player_ctx = NULL", I opted to make PlayerContext a QObject, and then just use QPointer<PlayerContext> as this will clear itself to NULL as soon as it is destroyed. Fixes #10616
- Loading branch information
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters