Rename "stop" to "interrupt"

The purpose of video_buffer_stop() is to interrupt any blocking call, so
rename it to video_buffer_interrupt().
This commit is contained in:
Romain Vimont
2019-03-02 17:01:52 +01:00
parent fff87095d9
commit 84270e2d18
3 changed files with 7 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ struct video_buffer {
AVFrame *rendering_frame;
SDL_mutex *mutex;
#ifndef SKIP_FRAMES
SDL_bool stopped;
SDL_bool interrupted;
SDL_cond *rendering_frame_consumed_cond;
#endif
SDL_bool rendering_frame_consumed;
@@ -37,6 +37,6 @@ SDL_bool video_buffer_offer_decoded_frame(struct video_buffer *vb);
const AVFrame *video_buffer_consume_rendered_frame(struct video_buffer *vb);
// wake up and avoid any blocking call
void video_buffer_stop(struct video_buffer *vb);
void video_buffer_interrupt(struct video_buffer *vb);
#endif