summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-22 02:19:48 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-23 12:48:48 +0200
commitab7fdbab00872f6435cd1b6b5f1304e2d03d86eb (patch)
tree4ea869ce960b846332e08c6908be86a2ebaa6a13 /ffplay.c
parentefd6cbc5ddac2d4df7008733bfef1d6d6809cc3c (diff)
ffplay: rename stream_pause() to stream_toggle_pause()
The new name is less misleading, since the function will resume the stream if it is currently paused. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffplay.c b/ffplay.c
index eb5b278966..28ec615b3e 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1064,7 +1064,7 @@ static void stream_seek(VideoState *is, int64_t pos, int64_t rel, int seek_by_by
}
/* pause or resume the video */
-static void stream_pause(VideoState *is)
+static void stream_toggle_pause(VideoState *is)
{
if (is->paused) {
is->frame_timer += av_gettime() / 1000000.0 + is->video_current_pts_drift - is->video_current_pts;
@@ -1865,7 +1865,7 @@ static int video_thread(void *arg)
if (step)
if (cur_stream)
- stream_pause(cur_stream);
+ stream_toggle_pause(cur_stream);
}
the_end:
#if CONFIG_AVFILTER
@@ -1944,7 +1944,7 @@ static int subtitle_thread(void *arg)
av_free_packet(pkt);
// if (step)
// if (cur_stream)
-// stream_pause(cur_stream);
+// stream_toggle_pause(cur_stream);
}
the_end:
return 0;
@@ -2713,7 +2713,7 @@ static void toggle_full_screen(void)
static void toggle_pause(void)
{
if (cur_stream)
- stream_pause(cur_stream);
+ stream_toggle_pause(cur_stream);
step = 0;
}
@@ -2722,7 +2722,7 @@ static void step_to_next_frame(void)
if (cur_stream) {
/* if the stream is paused unpause it, then step */
if (cur_stream->paused)
- stream_pause(cur_stream);
+ stream_toggle_pause(cur_stream);
}
step = 1;
}