Skip to content

Commit 596f53a

Browse files
committed
New upstream version 1.3.4
1 parent ae26ef9 commit 596f53a

File tree

116 files changed

+11320
-4467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+11320
-4467
lines changed

.travis.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ matrix:
1515
- env: BUILD_TYPE=Debug
1616
- env: BUILD_TYPE=Release
1717
- os: osx
18-
osx_image: xcode7.3
18+
osx_image: xcode10.2
1919
env: BUILD_TYPE=Debug
20-
before_install: brew update
21-
install: brew install openssl gnutls nettle
2220
- os: osx
23-
osx_image: xcode7.3
24-
before_install: brew update
25-
install: brew install openssl gnutls nettle
21+
osx_image: xcode10.2
2622
env: BUILD_TYPE=Release
2723
- os: linux
2824
compiler: x86_64-w64-mingw32-g++
@@ -35,9 +31,8 @@ matrix:
3531
- gcc-mingw-w64
3632
- g++-mingw-w64-x86-64
3733
before_script:
38-
- git clone https://github.com/openssl/openssl.git
34+
- git clone -b OpenSSL_1_1_1-stable https://github.com/openssl/openssl.git openssl
3935
- cd openssl
40-
- git checkout origin/OpenSSL_1_1_0-stable -b OpenSSL_1_1_0-stable
4136
- ./Configure --cross-compile-prefix=x86_64-w64-mingw32- mingw64
4237
- make
4338
- cd ..

apps/srt-multiplex.cpp renamed to ATTIC/srt-multiplex.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ struct MediumPair
105105

106106
if (!initial_portion.empty())
107107
{
108-
tar->Write(initial_portion);
109-
if ( tar->Broken() )
108+
tar->Write(initial_portion.data(), initial_portion.size());
109+
if (tar->Broken())
110110
{
111111
applog.Note() << "OUTPUT BROKEN for loop: " << name;
112112
return;
@@ -121,7 +121,8 @@ struct MediumPair
121121
ostringstream sout;
122122
alarm(1);
123123
bytevector data;
124-
src->Read(chunk, data);
124+
const int read_res = src->Read(chunk, data);
125+
125126
alarm(0);
126127
if (alarm_state)
127128
{
@@ -131,15 +132,15 @@ struct MediumPair
131132
break;
132133
continue;
133134
}
134-
sout << " << " << data.size() << " -> ";
135-
if ( data.empty() && src->End() )
135+
sout << " << " << read_res << " -> ";
136+
if (read_res <= 0 || (data.empty() && src->End()))
136137
{
137138
sout << "EOS";
138139
applog.Note() << sout.str();
139140
break;
140141
}
141-
tar->Write(data);
142-
if ( tar->Broken() )
142+
tar->Write(data.data(), data.size());
143+
if (tar->Broken())
143144
{
144145
sout << " OUTPUT broken";
145146
applog.Note() << sout.str();
@@ -565,9 +566,9 @@ int main( int argc, char** argv )
565566
}
566567

567568
int iport = atoi(up.port().c_str());
568-
if ( iport <= 1024 )
569+
if ( iport < 1024 )
569570
{
570-
cerr << "Port value invalid: " << iport << " - must be >1024\n";
571+
cerr << "Port value invalid: " << iport << " - must be >=1024\n";
571572
return 1;
572573
}
573574

0 commit comments

Comments
 (0)