mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves #427. Moves the module(s) reset operation to the stop() method
so that the modules are reset after they are shut down, in order to prepare for processing chain reuse. Previously, the modules were reset upon startup, but after any traffic channel metadata had already been transferred to the channel state, causing the metadata to be lost and allowing initial audio packets to stream without any metadata and related streaming/monitoring rules.
This commit is contained in:
@@ -565,12 +565,6 @@ public class ProcessingChain implements IChannelEventListener
|
||||
{
|
||||
if(mSource != null)
|
||||
{
|
||||
//Reset each of the modules
|
||||
for(Module module : mModules)
|
||||
{
|
||||
module.reset();
|
||||
}
|
||||
|
||||
//Broadcast the source sample rate so that each of the modules can self-configure
|
||||
mSourceEventBroadcaster.broadcast(SourceEvent.sampleRateChange(mSource.getSampleRate(), "Processing Chain Startup"));
|
||||
|
||||
@@ -652,6 +646,12 @@ public class ProcessingChain implements IChannelEventListener
|
||||
{
|
||||
module.stop();
|
||||
}
|
||||
|
||||
//Reset each of the modules
|
||||
for(Module module : mModules)
|
||||
{
|
||||
module.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user