]> rtime.felk.cvut.cz Git - frescor/streamer.git/commitdiff
The streamer is FRESCORized to allow underlying communication over FWP.
authorMartin Molnar <molnam1@fel.cvut.cz>
Wed, 20 May 2009 18:22:24 +0000 (20:22 +0200)
committerMartin <molnam1@fel.cvut.cz>
Wed, 20 May 2009 18:22:24 +0000 (20:22 +0200)
Signed-off-by: Martin <molnam1@fel.cvut.cz>
Makefile.omk
streamer.c

index 6de24ea8ac1897ab0cdea672ed22dbea44c8cb84..595b8128e8553427ae25356e731a649ad017f70c 100644 (file)
@@ -1,4 +1,9 @@
-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 
@@ -18,3 +23,6 @@ streamer_SOURCES=streamer.c input.c codec.c output.c
 
 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
index 4185c1689f8e3808311de72c43ff158d8d1de3cf..3e563dbae666a3e7daf2eec2117d0e1a933198cc 100644 (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";
@@ -75,7 +81,12 @@ static int args_parse(int argc, char *argv[])
 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();