summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniels <niels@dyne.org>2015-07-31 18:04:20 (GMT)
committer niels <niels@dyne.org>2015-07-31 18:04:20 (GMT)
commit609e5b21ce19678005140d2d35a07c1202fc63cc (patch)
tree3e508714b4c466a9f43762a267ef212dbc9a8256
parent34ae8b8daaeb867c21cff60eb3d8df16f77ed706 (diff)
ensure command queues are allocated for data port (!) (fixes crash in unicast streaming, regression)
-rw-r--r--veejay-current/veejay-server/veejay/vj-event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/veejay-current/veejay-server/veejay/vj-event.c b/veejay-current/veejay-server/veejay/vj-event.c
index 56ba53b..0d334e4 100644
--- a/veejay-current/veejay-server/veejay/vj-event.c
+++ b/veejay-current/veejay-server/veejay/vj-event.c
@@ -1697,6 +1697,8 @@ void vj_event_update_remote(void *ptr)
{
if( vj_server_link_can_read( v->vjs[VEEJAY_PORT_DAT], i ) )
{
+ vj_server_init_msg_pool( v->vjs[VEEJAY_PORT_DAT], i ); // ensure pool is ready
+
int res = vj_server_update( v->vjs[VEEJAY_PORT_DAT], i );
if(res>0)
{
@@ -1704,7 +1706,6 @@ void vj_event_update_remote(void *ptr)
int n = 0;
int len = 0;
char *buf = NULL;
- vj_server_init_msg_pool( v->vjs[VEEJAY_PORT_DAT], i ); // ensure pool is ready
while( (buf= vj_server_retrieve_msg(v->vjs[VEEJAY_PORT_DAT],i,buf, &len))!= NULL )
{
vj_event_parse_msg( v, buf,len );