mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Close codec written.
This commit is contained in:
parent
c1a3ed6041
commit
a951584eab
8
codec.c
8
codec.c
@ -344,8 +344,12 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
|
|||||||
*/
|
*/
|
||||||
void CodecVideoClose(VideoDecoder * video_decoder)
|
void CodecVideoClose(VideoDecoder * video_decoder)
|
||||||
{
|
{
|
||||||
(void)video_decoder;
|
// FIXME: play buffered data
|
||||||
// FIXME: write close code
|
av_freep(&video_decoder->Frame);
|
||||||
|
if ( video_decoder->VideoCtx ) {
|
||||||
|
avcodec_close(video_decoder->VideoCtx);
|
||||||
|
av_freep(&video_decoder->VideoCtx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user