From 8ba9e492f7a180230145a16324175254c6ebe80b Mon Sep 17 00:00:00 2001 From: Roman Bazalevsky Date: Tue, 2 Sep 2014 14:05:52 +0400 Subject: [PATCH] Minor fixes --- build.sh | 22 ++++++++++++++++++++++ oss-streamer | Bin 12327 -> 12327 bytes oss-streamer.c | 4 ++-- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..2df5077 --- /dev/null +++ b/build.sh @@ -0,0 +1,22 @@ +#!/bin/bash +export STAGING_DIR=/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/ +/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mips-openwrt-linux-uclibc-gcc \ + -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc \ + -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float \ + -mips16 -minterlink-mips16 \ + -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include \ + -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include \ + -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include \ + -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include \ + -L/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib \ + -L/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib \ + -L/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib \ + -L/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib \ + -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include \ + -I/home/rvb/git/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include \ + -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include \ + -I/home/rvb/git/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include \ + -D'SVN_REV="Unversioned directory"' -O2 -DLINUX -D_GNU_SOURCE -Wall \ + oss-streamer.c -lpthread -ldl -o oss-streamer + + \ No newline at end of file diff --git a/oss-streamer b/oss-streamer index ceabc2e898569ffcf81c4b715e07515fc5578253..7fdd265bed34d38e3585b79560de7ca8c2ac276f 100755 GIT binary patch delta 43 ycmZ3UusmTysTfOQX-ekiO0j%Kk>Jz<1qCAoBLhPd218>jQ%fro^UZ(6wIu*OSPb$2 delta 43 ycmZ3UusmTysTfOHW=iVjO0j%K5wFr51w%sxBLhPd2183LLt`sL!_9xhwIu*QWDNZP diff --git a/oss-streamer.c b/oss-streamer.c index a64a166..411c133 100644 --- a/oss-streamer.c +++ b/oss-streamer.c @@ -121,7 +121,7 @@ void help(char *progname) fprintf(stderr, "------------------------------------------------------------------\n"); fprintf(stderr, "Usage: oss-stream" \ " [-h | --help ]........: display this help\n" \ - " [-d | --device ]......: video device to open (your camera)\n" \ + " [-d | --device ]......: audio device to open (your camera)\n" \ " [-p | --port ]........: TCP-port for the server\n" \ " [-v | --version ].....: display version information\n" \ " [-b | --background]...: fork to the background, daemon mode\n"); @@ -279,7 +279,7 @@ int main(int argc, char *argv[]) /* allocate audio datastructure */ - /* open video device and prepare data structure */ + /* open audio device and prepare data structure */ if (strcmp(dev,"stdin")==0) { source_dev = stdin; } else { -- 2.34.1