examples: Add command-line parsing and take a 'port' argument
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 30 Dec 2014 12:43:49 +0000 (18:13 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 30 Dec 2014 16:04:14 +0000 (16:04 +0000)
commite0d3807cbbba6c24d24b6a9cf8e8e11005b74c51
tree0265ab5f7585e93bc7439956d83ffc00b98563ab
parent79e41bc2bee8223db5278fe85e14348b3a45aa40
examples: Add command-line parsing and take a 'port' argument

This allows users to run multiple servers on different ports for testing.

Only done for examples that actually take arguments and hence are capable of
outputting different streams for each instance on each port.

https://bugzilla.gnome.org/show_bug.cgi?id=742115
examples/test-launch.c
examples/test-mp4.c
examples/test-ogg.c
examples/test-uri.c