ffplay: move up pause functions
No change in functionality. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
28
ffplay.c
28
ffplay.c
@@ -1220,6 +1220,20 @@ static void stream_toggle_pause(VideoState *is)
|
|||||||
is->paused = !is->paused;
|
is->paused = !is->paused;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void toggle_pause(VideoState *is)
|
||||||
|
{
|
||||||
|
stream_toggle_pause(is);
|
||||||
|
is->step = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void step_to_next_frame(VideoState *is)
|
||||||
|
{
|
||||||
|
/* if the stream is paused unpause it, then step */
|
||||||
|
if (is->paused)
|
||||||
|
stream_toggle_pause(is);
|
||||||
|
is->step = 1;
|
||||||
|
}
|
||||||
|
|
||||||
static double compute_target_delay(double delay, VideoState *is)
|
static double compute_target_delay(double delay, VideoState *is)
|
||||||
{
|
{
|
||||||
double sync_threshold, diff;
|
double sync_threshold, diff;
|
||||||
@@ -2925,20 +2939,6 @@ static void toggle_full_screen(VideoState *is)
|
|||||||
video_open(is, 1, NULL);
|
video_open(is, 1, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void toggle_pause(VideoState *is)
|
|
||||||
{
|
|
||||||
stream_toggle_pause(is);
|
|
||||||
is->step = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void step_to_next_frame(VideoState *is)
|
|
||||||
{
|
|
||||||
/* if the stream is paused unpause it, then step */
|
|
||||||
if (is->paused)
|
|
||||||
stream_toggle_pause(is);
|
|
||||||
is->step = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void toggle_audio_display(VideoState *is)
|
static void toggle_audio_display(VideoState *is)
|
||||||
{
|
{
|
||||||
int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00);
|
int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00);
|
||||||
|
|||||||
Reference in New Issue
Block a user