mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14424 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
58d5c86936
commit
c0248be1c3
@ -111,7 +111,7 @@ struct shout_context {
|
||||
int mp3err;
|
||||
int dlen;
|
||||
FILE *fp;
|
||||
int samplerate;
|
||||
size_t samplerate;
|
||||
uint8_t thread_running;
|
||||
uint8_t shout_init;
|
||||
uint32_t prebuf;
|
||||
@ -791,7 +791,7 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in
|
||||
}
|
||||
|
||||
switch_buffer_zero(context->audio_buffer);
|
||||
*cur_sample = mpg123_seek (context->mh, samples, whence);
|
||||
*cur_sample = mpg123_seek (context->mh, (off_t)samples, whence);
|
||||
|
||||
return *cur_sample >= 0 ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
@ -741,15 +741,15 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (destroy_status == SWITCH_STATUS_RESTART) {
|
||||
char buf[1024] = "";
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
switch_assert(local_argv[0]);
|
||||
switch_sleep(1000000);
|
||||
ret = (int)execv(local_argv[0], local_argv);
|
||||
fprintf(stderr, "Restart Failed [%s] resorting to plan b\n", strerror(errno));
|
||||
|
||||
for(i = 0; i < argc; i++) {
|
||||
switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", local_argv[i]);
|
||||
for(j = 0; i < argc; j++) {
|
||||
switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", local_argv[j]);
|
||||
}
|
||||
|
||||
ret = system(buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user