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

Commit cc70d4bd authored by vivek mehta's avatar vivek mehta Committed by Gerrit - the friendly Code Review server
Browse files

hal: check offload_callback not NULL before calling

- in case when offload o/p stream is created in blocking mode
  flinger do not sets the callback pointer. So check for offload
  callback pointer before calling.

Change-Id: I4192c8cc793c48d7647d7652366c8c92ceb469cc
parent 241abbf8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1327,7 +1327,7 @@ static void *offload_thread_loop(void *context)
        pthread_mutex_lock(&out->lock);
        out->offload_thread_blocked = false;
        pthread_cond_signal(&out->cond);
        if (send_callback) {
        if (send_callback && out->offload_callback) {
            ALOGVV("%s: sending offload_callback event %d", __func__, event);
            out->offload_callback(event, NULL, out->offload_cookie);
        }