Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 945e33a9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: add NULL check for active input stream"

parents 30ebb70f bbfa5f7b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2275,7 +2275,8 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)

    /* If input stream is already running then effect needs to be
       applied on the new input device that's being enabled here.  */
    if ((in_snd_device != SND_DEVICE_NONE) && (!adev->active_input->standby))
    if ((in_snd_device != SND_DEVICE_NONE) && (adev->active_input != NULL) &&
        (!adev->active_input->standby))
        check_and_enable_effect(adev);

    if (usecase->type == VOICE_CALL || usecase->type == VOIP_CALL) {