]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - streamer.c
The streamer is FRESCORized to allow underlying communication over FWP.
[frescor/streamer.git] / streamer.c
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();