Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #59 from WatchBeam/light-saber
Browse files Browse the repository at this point in the history
Light saber
  • Loading branch information
sslivins committed Nov 1, 2016
2 parents 9497bd2 + fdf61c2 commit 9b07fc6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -42,6 +42,7 @@ build_scripts/
*.vcxproj.filters
*.sln
*.db
*db-wal


/other/
Expand Down
4 changes: 2 additions & 2 deletions build_scripts/build_tachyon_windows_vs.bat
@@ -1,7 +1,7 @@
REM check for cef binary
REM check for dependencies (ffmpeg, etc)
SET build_config=Release
SET obs_version=1.2.14
SET obs_version=1.2.15
SET cef_binary_dir=C:\beam\cef_binary
SET cef_release_dir=C:\beam\obs-browser-1.22
SET coredeps=C:\beam\tachyon_deps
Expand Down Expand Up @@ -30,7 +30,7 @@ cd ..
call git submodule update --init
cd ..
echo "building libftl"
call git clone https://github.com/WatchBeam/ftl-sdk.git
call git clone https://github.com/WatchBeam/ftl-sdk.git
cd ftl-sdk
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion build_scripts/tachyon_windows_installer.nsi
Expand Up @@ -3,7 +3,7 @@
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Tachyon"
!define DEFAULT_INST_DIR "$PROGRAMFILES\${PRODUCT_NAME}"
!define PRODUCT_VERSION "1.2.14"
!define PRODUCT_VERSION "1.2.15"
!define PRODUCT_PUBLISHER "Beam Interactive"
!define PRODUCT_WEB_SITE "http://beam.pro"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\tachyon64.exe"
Expand Down
8 changes: 6 additions & 2 deletions plugins/obs-ffmpeg/obs-ffmpeg-output.c
Expand Up @@ -15,6 +15,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/

//#define _FTL_USE_H264

#include <obs-module.h>
#include <util/circlebuf.h>
#include <util/threading.h>
Expand Down Expand Up @@ -1337,9 +1339,11 @@ static int try_connect(struct ffmpeg_output *output)
}

/* Glue together the ingest URL */
int remote_port = ftl_get_remote_port(output->stream_config);

#ifdef _WIN32
swprintf(ftl_ingest_arg, sizeof(ftl_ingest_arg)/sizeof(wchar_t), L"-rtpingestaddr=%hs:8082", config.ingest_ip);
swprintf(ftl_ingest_arg, sizeof(ftl_ingest_arg)/sizeof(wchar_t), L"-rtpingestaddr=%hs:%d", config.ingest_location, remote_port);

blog(LOG_WARNING, "FTL ingest args are: %S\n", ftl_ingest_arg);
ZeroMemory( &output->ShExecInfo, sizeof(output->ShExecInfo) );
output->ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
Expand All @@ -1354,7 +1358,7 @@ static int try_connect(struct ffmpeg_output *output)
ShellExecuteEx(&output->ShExecInfo);
SetPriorityClass(output->ShExecInfo.hProcess, HIGH_PRIORITY_CLASS);
#else
snprintf(ftl_ingest_arg, sizeof(ftl_ingest_arg), "-rtpingestaddr=%s:8082", config.ingest_ip);
snprintf(ftl_ingest_arg, sizeof(ftl_ingest_arg), "-rtpingestaddr=%s:%d", config.ingest_ip, remote_port);
blog(LOG_WARNING, "FTL ingest args are: %s\n", ftl_ingest_arg);
/* print error message if fork() fails */
blog(LOG_WARNING, "Forking Process\n");
Expand Down

0 comments on commit 9b07fc6

Please sign in to comment.