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

Commit ec73c30e authored by Phil Burk's avatar Phil Burk
Browse files

liboboe: initialize mHasThread



HelloOboe was failing when OboeStream_createThread() was first called.
The uninitialized variable caused it to think it already had a thread.

Test: HelloOboe demo app
Change-Id: I91358999a56903d239c45824cacc520e69691c18
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 36867767
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ private:
    oboe_audio_format_t  mFormat = OBOE_UNSPECIFIED;
    oboe_direction_t     mDirection = OBOE_DIRECTION_OUTPUT;

    bool                 mHasThread;
    bool                 mHasThread = false;
    pthread_t            mThread;
};