mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 12:37:26 +00:00
FS-5242
This commit is contained in:
parent
aca9257f93
commit
47e6dfbbdf
@ -893,7 +893,12 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in
|
|||||||
switch_buffer_zero(context->audio_buffer);
|
switch_buffer_zero(context->audio_buffer);
|
||||||
*cur_sample = mpg123_seek(context->mh, (off_t) samples, whence);
|
*cur_sample = mpg123_seek(context->mh, (off_t) samples, whence);
|
||||||
|
|
||||||
return *cur_sample >= 0 ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE;
|
if (*cur_sample >= 0) {
|
||||||
|
handle->pos = *cur_sample;
|
||||||
|
return SWITCH_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user