Skip to content

Commit

Permalink
refactor: cdda_play should be int
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Jan 23, 2025
1 parent 6e988f2 commit c0db52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/osdep/cda_play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static bool cdda_play2(struct cda_play* ciw, int* outpos)
return restart;
}

void ciw_cdda_play(void* v)
int ciw_cdda_play(void* v)
{
struct cda_play* ciw = (struct cda_play*)v;
int outpos = -1;
Expand All @@ -360,6 +360,7 @@ void ciw_cdda_play(void* v)
ciw->cdda_play = 1;
}
ciw->cdda_play = 0;
return 0;
}

void ciw_cdda_stop(struct cda_play* ciw)
Expand Down
2 changes: 1 addition & 1 deletion src/osdep/cda_play.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ struct cda_play
cda_play_read_block read_block;
};

void ciw_cdda_play(void* ciw);
int ciw_cdda_play(void* ciw);
void ciw_cdda_stop(struct cda_play* ciw);
int ciw_cdda_setstate(struct cda_play* ciw, int state, int playpos);

0 comments on commit c0db52f

Please sign in to comment.