diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-01-23 08:53:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-23 19:32:08 +0100 |
commit | bf7aa642c358148a693354777a1b3f12d5affdaa (patch) | |
tree | e49201793fe288be514c2ea54b7b65b87651049e /ffserver.c | |
parent | eddf8f4100baa7a3f35aeb3bd1701c8a3a7b9b22 (diff) | |
download | ffmpeg-bf7aa642c358148a693354777a1b3f12d5affdaa.tar.gz |
ffserver: cleanup
remove the trivial function do_switch_stream as it doesn't help to make
the code easier to understand.
(cherry picked from commit 305ca590cfdbb8ffbe32c6ed26825489a640ff05)
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/ffserver.c b/ffserver.c index 89e8e9582d..94a239ca5d 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1192,19 +1192,6 @@ static int modify_current_stream(HTTPContext *c, char *rates) return action_required; } - -static void do_switch_stream(HTTPContext *c, int i) -{ - if (c->switch_feed_streams[i] >= 0) { -#ifdef PHILIP - c->feed_streams[i] = c->switch_feed_streams[i]; -#endif - - /* Now update the stream */ - } - c->switch_feed_streams[i] = -1; -} - /* XXX: factorize in utils.c ? */ /* XXX: take care with different space meaning */ static void skip_spaces(const char **pp) @@ -1578,7 +1565,7 @@ static int http_parse_request(HTTPContext *c) if (modify_current_stream(c, ratebuf)) { for (i = 0; i < FF_ARRAY_ELEMS(c->feed_streams); i++) { if (c->switch_feed_streams[i] >= 0) - do_switch_stream(c, i); + c->switch_feed_streams[i] = -1; } } } @@ -2349,7 +2336,7 @@ static int http_prepare_data(HTTPContext *c) for(i=0;i<c->stream->nb_streams;i++) { if (c->switch_feed_streams[i] == pkt.stream_index) if (pkt.flags & AV_PKT_FLAG_KEY) - do_switch_stream(c, i); + c->switch_feed_streams[i] = -1; if (c->switch_feed_streams[i] >= 0) c->switch_pending = 1; } |