diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-10-29 08:48:12 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-10-29 08:48:12 +0200 |
commit | 79090c8988b037f7bfc6c12107a0a188bac038fe (patch) | |
tree | 62afde37ea6b77ddfb4183a79cc724eada8a3a47 /command/decoder.cpp | |
parent | 27bc40995aa61caf786300bae6a031cead497f29 (diff) | |
download | vdr-plugin-markad-79090c8988b037f7bfc6c12107a0a188bac038fe.tar.gz vdr-plugin-markad-79090c8988b037f7bfc6c12107a0a188bac038fe.tar.bz2 |
Removed avcodec_thread_free, it will be called in avcodec_close
Diffstat (limited to 'command/decoder.cpp')
-rw-r--r-- | command/decoder.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/command/decoder.cpp b/command/decoder.cpp index 9e9dcae..008686d 100644 --- a/command/decoder.cpp +++ b/command/decoder.cpp @@ -370,7 +370,6 @@ cMarkAdDecoder::~cMarkAdDecoder() Clear(); if (video_context) { - if (video_context->thread_opaque) avcodec_thread_free(video_context); avcodec_close(video_context); av_free(video_context); av_free(video_frame); @@ -378,14 +377,12 @@ cMarkAdDecoder::~cMarkAdDecoder() if (ac3_context) { - if (ac3_context->thread_opaque) avcodec_thread_free(ac3_context); avcodec_close(ac3_context); av_free(ac3_context); } if (mp2_context) - { - if (mp2_context->thread_opaque) avcodec_thread_free(mp2_context); + { avcodec_close(mp2_context); av_free(mp2_context); } @@ -397,7 +394,6 @@ bool cMarkAdDecoder::Clear() bool ret=true; if (video_context) { - if (video_context->thread_opaque) avcodec_thread_free(video_context); avcodec_flush_buffers(video_context); AVCodecContext *dest; dest=avcodec_alloc_context(); |