Skip to content

LMS_DestroyStream tears down the stream shared by the other channels #401

Description

@dmitrymmm

All lms_stream_t objects of one device share the single apiDevice->stream, created once in LMS_SetupStream. LMS_DestroyStream resets it unconditionally, without consulting the other channels' maskChannelsSetup. The remaining SubChannelHandle objects stay valid with their setup and active bits set, so LMS_StartStream, LMS_StopStream, LMS_GetStreamStatus, ReceiveStream and SendStream all dereference a null unique_ptr afterwards.

The same function also searches the saved config with the raw stream->channel, while LMS_SetupStream stored stream->channel & ~LMS_ALIGN_CH_PHASE, so a channel set up with the align-phase flag is never erased from lastSavedStreamConfig.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions