summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefan Huehner <stefan@huehner.org>2006-06-18 11:33:14 +0000
committerDiego Biurrun <diego@biurrun.de>2006-06-18 11:33:14 +0000
commit7b49ce2e344a5f8864d8365d57f3c6c743f0c8f7 (patch)
tree12c908af01e95ca2df7f4ca20be592871527577e /ffplay.c
parent3b9bee88891d1c170eb42d1ef51c5cd7f19b5ba5 (diff)
Add const to (mostly) char* and make some functions static, which aren't used
outside their declaring source file and which have no corresponding prototype. patch by Stefan Huehner stefan^^@^^huehner^^.^^org Originally committed as revision 5497 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ffplay.c b/ffplay.c
index 720ce324c9..8cffa8f704 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1735,7 +1735,7 @@ static void stream_component_close(VideoState *is, int stream_index)
}
}
-void dump_stream_info(AVFormatContext *s)
+static void dump_stream_info(const AVFormatContext *s)
{
if (s->track != 0)
fprintf(stderr, "Track: %d\n", s->track);
@@ -2042,7 +2042,7 @@ static void stream_close(VideoState *is)
SDL_DestroyMutex(is->video_decoder_mutex);
}
-void stream_cycle_channel(VideoState *is, int codec_type)
+static void stream_cycle_channel(VideoState *is, int codec_type)
{
AVFormatContext *ic = is->ic;
int start_index, stream_index;
@@ -2092,7 +2092,7 @@ void stream_cycle_channel(VideoState *is, int codec_type)
}
-void toggle_full_screen(void)
+static void toggle_full_screen(void)
{
int w, h, flags;
is_full_screen = !is_full_screen;
@@ -2117,14 +2117,14 @@ void toggle_full_screen(void)
}
}
-void toggle_pause(void)
+static void toggle_pause(void)
{
if (cur_stream)
stream_pause(cur_stream);
step = 0;
}
-void step_to_next_frame(void)
+static void step_to_next_frame(void)
{
if (cur_stream) {
if (cur_stream->paused)
@@ -2134,7 +2134,7 @@ void step_to_next_frame(void)
step = 1;
}
-void do_exit(void)
+static void do_exit(void)
{
if (cur_stream) {
stream_close(cur_stream);
@@ -2146,7 +2146,7 @@ void do_exit(void)
exit(0);
}
-void toggle_audio_display(void)
+static void toggle_audio_display(void)
{
if (cur_stream) {
cur_stream->show_audio = !cur_stream->show_audio;
@@ -2154,7 +2154,7 @@ void toggle_audio_display(void)
}
/* handle an event sent by the GUI */
-void event_loop(void)
+static void event_loop(void)
{
SDL_Event event;
double incr, pos, frac;