365 |
} |
} |
366 |
|
|
367 |
void DiskThread::DeleteStream(delete_command_t& Command) { |
void DiskThread::DeleteStream(delete_command_t& Command) { |
368 |
if (Command.pStream) Command.pStream->Kill(); |
if (Command.pStream) { |
369 |
|
Command.pStream->Kill(); |
370 |
|
if (Command.bNotify) DeletionNotificationQueue.push(&Command.hStream); |
371 |
|
} |
372 |
else { // the stream wasn't created by disk thread or picked up by audio thread yet |
else { // the stream wasn't created by disk thread or picked up by audio thread yet |
373 |
|
|
374 |
// if stream was created but not picked up yet |
// if stream was created but not picked up yet |