mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
prevent a panic when destroying a channel with no incoming video.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Asterisk -- An open source telephony toolkit.
|
* Asterisk -- An open source telephony toolkit.
|
||||||
*
|
*
|
||||||
* Copyright 2007, Sergio Fadda, Luigi Rizzo
|
* Copyright 2007-2008, Sergio Fadda, Luigi Rizzo
|
||||||
*
|
*
|
||||||
* See http://www.asterisk.org for more information about
|
* See http://www.asterisk.org for more information about
|
||||||
* the Asterisk project. Please do not directly contact
|
* the Asterisk project. Please do not directly contact
|
||||||
@@ -1168,6 +1168,8 @@ static struct video_dec_desc *dec_uninit(struct video_dec_desc *v)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (v == NULL) /* not initialized yet */
|
||||||
|
return NULL;
|
||||||
if (v->parser) {
|
if (v->parser) {
|
||||||
av_parser_close(v->parser);
|
av_parser_close(v->parser);
|
||||||
v->parser = NULL;
|
v->parser = NULL;
|
||||||
|
Reference in New Issue
Block a user