[asterisk-commits] rizzo: trunk r95672 - /trunk/channels/vcodecs.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 1 17:54:40 CST 2008


Author: rizzo
Date: Tue Jan  1 17:54:40 2008
New Revision: 95672

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95672
Log:
prevent a panic when destroying a channel with no incoming video.


Modified:
    trunk/channels/vcodecs.c

Modified: trunk/channels/vcodecs.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/vcodecs.c?view=diff&rev=95672&r1=95671&r2=95672
==============================================================================
--- trunk/channels/vcodecs.c (original)
+++ trunk/channels/vcodecs.c Tue Jan  1 17:54:40 2008
@@ -1,7 +1,7 @@
 /*
  * 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
  * the Asterisk project. Please do not directly contact
@@ -1168,6 +1168,8 @@
 {
 	int i;
 
+	if (v == NULL)		/* not initialized yet */
+		return NULL;
 	if (v->parser) {
 		av_parser_close(v->parser);
 		v->parser = NULL;




More information about the asterisk-commits mailing list