-CFLAGS = -Wall
+default_CONFIG += CONFIG_STREAMER_WITH_FRSH=y
+default_CONFIG += CONFIG_AQUOSA=x
+
+LOCAL_CONFIG_H = streamer_config.h
+
+CFLAGS += -Wall
CFLAGS += -Wdeclaration-after-statement
CFLAGS += -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
CFLAGS += -Wno-pointer-sign
lib_LOADLIBES+= postproc swscale avfilter avdevice avformat avcodec avutil m z pthread
lib_LOADLIBES+= z bz2 m asound jack dl asound jack asound
+ifeq ($(CONFIG_STREAMER_WITH_FRSH),y)
+lib_LOADLIBES+= pthread rt fwp fna frsh
+endif
\ No newline at end of file
#include "codec.h"
#include "rt.h"
+#include "streamer_config.h"
+
+#ifdef CONFIG_STREAMER_WITH_FRSH
+#include <frsh.h>
+#endif
+
static const char *sdp_file = "sdp.txt";
static const char *vdev = "/dev/video0";
static const char *dst = "127.0.0.1";
int main(int argc, char *argv[])
{
AVFormatContext *s, *os;
- int done;
+ int done, ret;
+
+#ifdef CONFIG_STREAMER_WITH_FRSH
+ ret = frsh_init();
+ if (ret) PERROR_AND_EXIT(ret, "frsh_init1");
+#endif /*CONFIG_STREAMER_WITH_FRSH*/
avcodec_register_all();
av_register_all();