Commit 51750663 authored by Marios Fanourakis's avatar Marios Fanourakis

fixed issue with channels being wrong and for the markers to show properly

parent 0366f94c
......@@ -80,7 +80,7 @@ cell_t createLSLoutlet(IPluginContext *pContext, const cell_t *params)
int numChannels = -1;
bool isMarkerOutlet = false;
if(strcmp(channelLabels,"marker")){
if(strcmp(channelLabels,"marker")==0){
isMarkerOutlet=true;
numChannels=1;
}else if(strlen(channelLabels)>0){
......@@ -178,13 +178,14 @@ cell_t push_marker(IPluginContext *pContext, const cell_t *params)
if(std::strcmp(outlet.info().source_id().c_str(),streamID)==0)
{
std::string mrk(marker);
if(timestamp<0)
{
outlet.push_sample(marker);
outlet.push_sample(&mrk);
}else
{
outlet.push_sample(marker, timestamp);
outlet.push_sample(&mrk, timestamp);
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment