movie.c - turn some functions static

This commit is contained in:
twinaphex 2016-01-30 03:29:12 +01:00
parent b0ec812de6
commit 101ec57936
2 changed files with 5 additions and 13 deletions

View File

@ -198,7 +198,7 @@ void bsv_movie_free(bsv_movie_t *handle)
free(handle); free(handle);
} }
bsv_movie_t *bsv_movie_init(const char *path, enum rarch_movie_type type) static bsv_movie_t *bsv_movie_init(const char *path, enum rarch_movie_type type)
{ {
bsv_movie_t *handle = (bsv_movie_t*)calloc(1, sizeof(*handle)); bsv_movie_t *handle = (bsv_movie_t*)calloc(1, sizeof(*handle));
if (!handle) if (!handle)
@ -227,14 +227,15 @@ error:
return NULL; return NULL;
} }
void bsv_movie_set_frame_start(bsv_movie_t *handle) /* Used for rewinding while playback/record. */
static void bsv_movie_set_frame_start(bsv_movie_t *handle)
{ {
if (!handle) if (!handle)
return; return;
handle->frame_pos[handle->frame_ptr] = ftell(handle->file); handle->frame_pos[handle->frame_ptr] = ftell(handle->file);
} }
void bsv_movie_set_frame_end(bsv_movie_t *handle) static void bsv_movie_set_frame_end(bsv_movie_t *handle)
{ {
if (!handle) if (!handle)
return; return;
@ -245,7 +246,7 @@ void bsv_movie_set_frame_end(bsv_movie_t *handle)
handle->did_rewind = false; handle->did_rewind = false;
} }
void bsv_movie_frame_rewind(bsv_movie_t *handle) static void bsv_movie_frame_rewind(bsv_movie_t *handle)
{ {
handle->did_rewind = true; handle->did_rewind = true;

View File

@ -75,15 +75,6 @@ void bsv_movie_set_path(const char *path);
void bsv_movie_set_start_path(const char *path); void bsv_movie_set_start_path(const char *path);
bsv_movie_t *bsv_movie_init(const char *path, enum rarch_movie_type type);
/* Used for rewinding while playback/record. */
void bsv_movie_set_frame_start(bsv_movie_t *handle);
void bsv_movie_set_frame_end(bsv_movie_t *handle);
void bsv_movie_frame_rewind(bsv_movie_t *handle);
void bsv_movie_free(bsv_movie_t *handle); void bsv_movie_free(bsv_movie_t *handle);
bool bsv_movie_ctl(enum bsv_ctl_state state, void *data); bool bsv_movie_ctl(enum bsv_ctl_state state, void *data);