Hi, very minor changes I performed while reading the code (and I'm still longing for a --format-patch command in bzr).
Regards.
# Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: stef...@geppetto-20090812080640-5oedf02ftjjq3czu # target_branch: http://bzr.savannah.gnu.org/r/gnash/rtmp/ # testament_sha1: af01fa508936d5177338d01b02cf2aead4f00ed4 # timestamp: 2009-08-12 10:06:59 +0200 # base_revision_id: [email protected]\ # fuz6pig4jv1pu5nj # # Begin patch === modified file 'cygnal/README' --- cygnal/README 2009-02-14 22:42:54 +0000 +++ cygnal/README 2009-08-11 23:01:11 +0000 @@ -24,8 +24,8 @@ capturing a stream, which allows one to send a data stream to the server, where it can be stored, and then later replayed. -The server collects statistics on the mumber of connections, the -bandwidth consumed, which files are streamed, the frame rate, +The server collects statistics on the number of connections, the +bandwidth consumed, the files which are streamed, the frame rate, etc... This data can be used to tune the performance of the server when running. Some statistics modify the stream while it is playing, and the other are for load balancing on larger installations, like a @@ -92,7 +92,7 @@ 3rd party load balancing software will be used to redirect more incoming requests to the next available machine. -Each server will maintain it's own statistics, as well as support an +Each server will maintain its own statistics, as well as support an optional remote logging ability. A cache of statistics will be kept in memory to enable faster processing of things like the bitrate that require some historical data to make a calculation. @@ -118,7 +118,7 @@ spawn limit 4 -connection_handler - start a server waiting for incoming +connection_handler - starts a server waiting for incoming connections. This blocks waiting for new client requests. When a client connects, a dispatch_handler is created. === modified file 'cygnal/cygnal.cpp' --- cygnal/cygnal.cpp 2009-04-05 22:01:27 +0000 +++ cygnal/cygnal.cpp 2009-08-12 08:06:40 +0000 @@ -100,7 +100,6 @@ using namespace cygnal; using namespace amf; -static void usage(); static void version_and_copyright(); static void cntrlc_handler(int sig); static void hup_handler(int sig); @@ -121,10 +120,10 @@ // same read-only value. // This is the default path to look in for files to be streamed. -const char *docroot = 0; +static const char *docroot = 0; // This is the number of times a thread loop continues, for debugging only -int thread_retries = 10; +static int thread_retries = 10; // This is added to the default ports for testing so it doesn't // conflict with apache on the same machine. @@ -167,9 +166,9 @@ static boost::mutex noclients_mutex; static void -usage() +usage(ostream &o) { - cout << _("cygnal -- a streaming media server.") << endl + o << _("cygnal -- a streaming media server.") << endl << endl << _("Usage: cygnal [options...]") << endl << _(" -h, --help Print this help and exit") << endl @@ -213,7 +212,7 @@ Arg_parser parser(argc, argv, opts); if( ! parser.error().empty() ) { - cout << parser.error() << endl; + cerr << parser.error() << endl; exit(EXIT_FAILURE); } @@ -244,7 +243,7 @@ switch( code ) { case 'h': version_and_copyright(); - usage(); + usage(cout); exit(0); case 'V': version_and_copyright(); @@ -308,7 +307,7 @@ // Cvm cvm; // cvm.loadMovie("/tmp/out.swf"); - // Incomming connection handler for port 80, HTTP and + // Incoming connection handler for port 80, HTTP and // RTMPT. As port 80 requires root access, cygnal supports a // "port offset" for debugging and development of the // server. Since this port offset changes the constant to test @@ -328,7 +327,7 @@ Network::thread_params_t *rtmp_data = new Network::thread_params_t; - // Incomming connection handler for port 1935, RTMP. As RTMP + // Incoming connection handler for port 1935, RTMP. As RTMP // is not a priviledged port, we just open it without an offset. if ((only_port == 0) || (only_port == gnash::RTMP_PORT)) { rtmp_data->port = port_offset + gnash::RTMP_PORT; # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWe9N/rQAB0lfgFQwUXf//3di XgC////wYAqu+mlZIUAAA+1NbGnTku2FKbWmYCUUT9TSmyajajI9M1T0j1NDaTQBiDQ9QBzAJgJk YARiYmEwmCGmJpgcwCYCZGAEYmJhMJghpiaYCRJMIo9NNU/RTyRPBJsGqPUHpDR6m0EzSCKUymCa aaIFP2gRTMnqmn6mnqGSaYAamgVKIaAgCamIxAE0mmQGjQAMjAxvGPfJ1XHBiHoeFRPsgMXfa5D0 9fklJXC3KuGBiNYNcqMElAhpLRDRfXodU3nMIdej33iIYXUD4O0zvuVjLCMNMVVcKnqxMp3kyeyn ijyn8z19AjxRrQ0NjYNjbYHq4XoDFrfRGCHudHJknmzZARDpWcjZpEM7Wi92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xy7eggS5ZQIf OLitFkjcUayHf5r5HwL5JSfZp1Z1mD2o2CSXcm5NSsiYlYJUIPsesTISO8oyg6xByHoQnclwkJyb x5GNnRDGeiVDCbbGmkwDZLsRxa0Ep8nH07g7kfSokozR3prGUUkl0aLb8c9sJHgu7YYEcmJkylUf 0hKUhJpLpj44YOjZcSnQmIuQxDQ+Rd4j1rsf32N+jmCBNIlc/5ASSZVbhM19CWdJD5JuOQHiMgHC ZAOEyAcJkJ8RIAvKF7lzGw25FXrtOjbbe3IiX5o/VGAiqP5EPHBIutkotH94wQmnWMkaR9axw1mL gi9G7lhG8o96WjVCXTIMZJQ2rhllRFyLqSSsJiDISwocUmx2Cb3xEz3pbdAkFv716KXkh0tNauAY AJ2ochNPwEqzieBQ0R/ol/VeJWcwnf43q50xSEhISoxEJGtx3t1Ilw+AllqWNo/+LuSKcKEh3pv9 aA==
_______________________________________________ Gnash-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash-dev

