summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2013-01-19 01:44:38 +0100
committerMarton Balint <cus@passwd.hu>2013-02-02 12:38:14 +0100
commitc5eab4bb70cc9884ff1e0e11cb2f980bb3b40937 (patch)
treed9ce5ec23027c4bd4105117ea5bf7bfe8219d0bd /ffplay.c
parent5de3f724f1524ee01843f0d9c0033253b65c69ec (diff)
ffplay: move up pause functions
No change in functionality. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ffplay.c b/ffplay.c
index c9750bf834..c723b74a19 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1220,6 +1220,20 @@ static void stream_toggle_pause(VideoState *is)
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)
{
double sync_threshold, diff;
@@ -2925,20 +2939,6 @@ static void toggle_full_screen(VideoState *is)
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)
{
int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00);