Skip to content

Commit

Permalink
SEnd metadata _after_ sending audio to the output.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Nov 26, 2022
1 parent 63c1f3e commit 50738c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions player.c
Original file line number Diff line number Diff line change
Expand Up @@ -3045,7 +3045,10 @@ void *player_thread_func(void *arg) {
uint64_t should_be_time;
frame_to_local_time(inframe->given_timestamp, &should_be_time, conn);

config.output->play(conn->outbuf, play_samples, play_samples_are_timed,
inframe->given_timestamp, should_be_time);
#ifdef CONFIG_METADATA
// debug(1,"config.metadata_progress_interval is %f.", config.metadata_progress_interval);
if (config.metadata_progress_interval != 0.0) {
char hb[128];
if (this_is_the_first_frame != 0) {
Expand All @@ -3067,8 +3070,6 @@ void *player_thread_func(void *arg) {
}
}
#endif
config.output->play(conn->outbuf, play_samples, play_samples_are_timed,
inframe->given_timestamp, should_be_time);
}
}

Expand Down Expand Up @@ -3116,7 +3117,10 @@ void *player_thread_func(void *arg) {
}
uint64_t should_be_time;
frame_to_local_time(inframe->given_timestamp, &should_be_time, conn);
config.output->play(conn->outbuf, play_samples, play_samples_are_timed,
inframe->given_timestamp, should_be_time);
#ifdef CONFIG_METADATA
// debug(1,"config.metadata_progress_interval is %f.", config.metadata_progress_interval);
if (config.metadata_progress_interval != 0.0) {
char hb[128];
if (this_is_the_first_frame != 0) {
Expand All @@ -3138,8 +3142,6 @@ void *player_thread_func(void *arg) {
}
}
#endif
config.output->play(conn->outbuf, play_samples, play_samples_are_timed,
inframe->given_timestamp, should_be_time);
}
}

Expand Down

0 comments on commit 50738c3

Please sign in to comment.