[svn-commits] dvossel: trunk r265273 - /trunk/main/channel.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon May 24 11:10:10 CDT 2010
Author: dvossel
Date: Mon May 24 11:10:09 2010
New Revision: 265273
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=265273
Log:
fixes segfault when using generic plc
Modified:
trunk/main/channel.c
Modified: trunk/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/channel.c?view=diff&rev=265273&r1=265272&r2=265273
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon May 24 11:10:09 2010
@@ -4154,6 +4154,12 @@
int num_new_samples = frame->samples;
struct plc_ds *plc = datastore->data;
+
+ /* If this audio frame has no samples to fill in ignore it */
+ if (!num_new_samples) {
+ return;
+ }
+
/* First, we need to be sure that our buffer is large enough to accomodate
* the samples we need to fill in. This will likely only occur on the first
* frame we write.
More information about the svn-commits
mailing list