Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
13041f5c
Unverified
Commit
13041f5c
authored
Oct 10, 2017
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'theqvd-media_argument_bugfix' into 3.6.x
Attributes GH PR #526:
https://github.com/ArcticaProject/nx-libs/pull/526
parents
17ae45e0
f2c73bd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
ChannelEndPoint.cpp
nxcomp/src/ChannelEndPoint.cpp
+5
-0
ChannelEndPoint.h
nxcomp/src/ChannelEndPoint.h
+1
-0
Loop.cpp
nxcomp/src/Loop.cpp
+13
-11
No files found.
nxcomp/src/ChannelEndPoint.cpp
View file @
13041f5c
...
...
@@ -312,6 +312,11 @@ ChannelEndPoint::enabled() const {
}
bool
ChannelEndPoint
::
configured
()
const
{
return
(
spec_
&&
(
strcmp
(
spec_
,
"0"
)
!=
0
)
);
}
bool
ChannelEndPoint
::
validateSpec
()
{
isTCP_
=
getTCPHostAndPort
();
isUnix_
=
getUnixPath
();
...
...
nxcomp/src/ChannelEndPoint.h
View file @
13041f5c
...
...
@@ -46,6 +46,7 @@ class ChannelEndPoint
~
ChannelEndPoint
();
ChannelEndPoint
&
operator
=
(
const
ChannelEndPoint
&
other
);
bool
configured
()
const
;
bool
enabled
()
const
;
bool
disabled
()
{
return
!
enabled
();
}
void
disable
();
...
...
nxcomp/src/Loop.cpp
View file @
13041f5c
...
...
@@ -11746,20 +11746,22 @@ int SetPorts()
<<
logofs_flush
;
#endif
if
(
control
->
ProxyMode
==
proxy_client
)
{
mediaPort
.
setDefaultTCPPort
(
DEFAULT_NX_MEDIA_PORT_OFFSET
+
proxyPort
);
useMediaSocket
=
mediaPort
.
enabled
();
}
else
{
if
(
mediaPort
.
configured
()
)
{
if
(
control
->
ProxyMode
==
proxy_client
)
{
mediaPort
.
setDefaultTCPPort
(
DEFAULT_NX_MEDIA_PORT_OFFSET
+
proxyPort
);
useMediaSocket
=
mediaPort
.
enabled
();
}
else
{
if
(
!
mediaPort
.
enabled
()
)
{
#ifdef PANIC
*
logofs
<<
"Loop: PANIC! No port specified for multimedia connections.
\n
"
<<
logofs_flush
;
#endif
if
(
mediaPort
.
getTCPPort
()
<
0
)
{
#ifdef PANIC
*
logofs
<<
"Loop: PANIC! No port specified for multimedia connections.
\n
"
<<
logofs_flush
;
#endif
cerr
<<
"Error"
<<
": No port specified for multimedia connections.
\n
"
;
cerr
<<
"Error"
<<
": No port specified for multimedia connections.
\n
"
;
HandleCleanup
();
HandleCleanup
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment