Skip to content

Commit

Permalink
oss: Initialize cubeb_stream::state properly
Browse files Browse the repository at this point in the history
  • Loading branch information
khng300 committed Oct 10, 2020
1 parent 226d383 commit 4e60bb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cubeb_oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct cubeb_stream {
bool thread_created; /* (m) */
bool running; /* (m) */
bool destroying; /* (m) */
cubeb_state state;
cubeb_state state; /* (m) */
float volume /* (m) */;
struct oss_stream play;
struct oss_stream record;
Expand Down Expand Up @@ -1007,6 +1007,7 @@ oss_stream_init(cubeb * context,
ret = CUBEB_ERROR;
goto error;
}
s->state = CUBEB_STATE_STOPPED;
s->record.fd = s->play.fd = -1;
s->nfr = latency_frames;
if (input_device != NULL) {
Expand Down

0 comments on commit 4e60bb8

Please sign in to comment.