[asterisk-commits] dlee: branch dlee/ari-async-bridge r395904 - /team/dlee/ari-async-bridge/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 31 15:44:00 CDT 2013


Author: dlee
Date: Wed Jul 31 15:43:58 2013
New Revision: 395904

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=395904
Log:
oops

Modified:
    team/dlee/ari-async-bridge/res/res_stasis_playback.c

Modified: team/dlee/ari-async-bridge/res/res_stasis_playback.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ari-async-bridge/res/res_stasis_playback.c?view=diff&rev=395904&r1=395903&r2=395904
==============================================================================
--- team/dlee/ari-async-bridge/res/res_stasis_playback.c (original)
+++ team/dlee/ari-async-bridge/res/res_stasis_playback.c Wed Jul 31 15:43:58 2013
@@ -100,6 +100,10 @@
 	char id[AST_UUID_STR_LEN];
 	int res;
 
+	if (!control) {
+		return NULL;
+	}
+
 	playback = ao2_alloc(sizeof(*playback), playback_dtor);
 	if (!playback || ast_string_field_init(playback, 128)) {
 		return NULL;
@@ -114,6 +118,8 @@
 
 	ast_uuid_generate_str(id, sizeof(id));
 	ast_string_field_set(playback, id, id);
+
+	playback->control = control;
 
 	ao2_ref(playback, +1);
 	return playback;




More information about the asterisk-commits mailing list