Disabled USER_NEW for INPUT and OUTPUT type connections. Only real viewers trigger USER_NEW now.

This commit is contained in:
Thulinma 2016-05-20 14:21:48 +02:00
parent 5759dbef0f
commit 089940145e

View file

@ -160,7 +160,7 @@ namespace Mist {
recursing = true;
IPC::statExchange tmpEx(statsPage.getData());
if (tmpEx.getSync() == 2 || force){
if(Triggers::shouldTrigger("USER_NEW", streamName)){
if (getStatsName() == capa["name"].asStringRef() && Triggers::shouldTrigger("USER_NEW", streamName)){
//sync byte 0 = no sync yet, wait for sync from controller...
unsigned int i = 0;
tmpEx.setSync(0);