adjusted the way source removal is handled to make it a bit more safe

This commit is contained in:
jp9000
2013-11-20 18:36:46 -07:00
parent 5fa2f28577
commit f1decd08f4
5 changed files with 47 additions and 31 deletions

View File

@@ -33,7 +33,6 @@
/*#include "obs-service.h"*/
#define NUM_TEXTURES 2
#define MAX_CHANNELS 32
struct obs_display {
swapchain_t swap; /* can be NULL if just sound */
@@ -65,6 +64,7 @@ struct obs_audio {
audio_t audio;
};
/* user sources, output channels, and displays */
struct obs_data {
DARRAY(struct obs_display*) displays;
DARRAY(struct obs_source*) sources;