Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
3d21a798
Commit
3d21a798
authored
Aug 03, 2021
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't carry up tracks explicitly.
Left over from the old data structure.
parent
51c31ab7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rtpconn/webclient.go
rtpconn/webclient.go
+5
-5
No files found.
rtpconn/webclient.go
View file @
3d21a798
...
@@ -345,7 +345,7 @@ func delDownConnHelper(c *webClient, id string) *rtpDownConnection {
...
@@ -345,7 +345,7 @@ func delDownConnHelper(c *webClient, id string) *rtpDownConnection {
var
errUnexpectedTrackType
=
errors
.
New
(
"unexpected track type, this shouldn't happen"
)
var
errUnexpectedTrackType
=
errors
.
New
(
"unexpected track type, this shouldn't happen"
)
func
addDownTrackUnlocked
(
conn
*
rtpDownConnection
,
remoteTrack
*
rtpUpTrack
,
remoteConn
conn
.
Up
)
error
{
func
addDownTrackUnlocked
(
conn
*
rtpDownConnection
,
remoteTrack
*
rtpUpTrack
)
error
{
for
_
,
t
:=
range
conn
.
tracks
{
for
_
,
t
:=
range
conn
.
tracks
{
tt
,
ok
:=
t
.
remote
.
(
*
rtpUpTrack
)
tt
,
ok
:=
t
.
remote
.
(
*
rtpUpTrack
)
if
!
ok
{
if
!
ok
{
...
@@ -367,7 +367,7 @@ func addDownTrackUnlocked(conn *rtpDownConnection, remoteTrack *rtpUpTrack, remo
...
@@ -367,7 +367,7 @@ func addDownTrackUnlocked(conn *rtpDownConnection, remoteTrack *rtpUpTrack, remo
msid
:=
remoteTrack
.
track
.
StreamID
()
msid
:=
remoteTrack
.
track
.
StreamID
()
if
msid
==
""
{
if
msid
==
""
{
log
.
Println
(
"Got track with empty msid"
)
log
.
Println
(
"Got track with empty msid"
)
msid
=
remote
C
onn
.
Label
()
msid
=
remote
Track
.
c
onn
.
Label
()
}
}
if
msid
==
""
{
if
msid
==
""
{
msid
=
"dummy"
msid
=
"dummy"
...
@@ -446,7 +446,7 @@ func delDownTrackUnlocked(conn *rtpDownConnection, track *rtpDownTrack) error {
...
@@ -446,7 +446,7 @@ func delDownTrackUnlocked(conn *rtpDownConnection, track *rtpDownTrack) error {
return
os
.
ErrNotExist
return
os
.
ErrNotExist
}
}
func
replaceTracks
(
conn
*
rtpDownConnection
,
remote
[]
conn
.
UpTrack
,
remoteConn
conn
.
Up
)
(
bool
,
error
)
{
func
replaceTracks
(
conn
*
rtpDownConnection
,
remote
[]
conn
.
UpTrack
)
(
bool
,
error
)
{
conn
.
mu
.
Lock
()
conn
.
mu
.
Lock
()
defer
conn
.
mu
.
Unlock
()
defer
conn
.
mu
.
Unlock
()
...
@@ -501,7 +501,7 @@ outer2:
...
@@ -501,7 +501,7 @@ outer2:
}
}
for
_
,
rt
:=
range
add
{
for
_
,
rt
:=
range
add
{
err
:=
addDownTrackUnlocked
(
conn
,
rt
,
remoteConn
)
err
:=
addDownTrackUnlocked
(
conn
,
rt
)
if
err
!=
nil
{
if
err
!=
nil
{
return
false
,
err
return
false
,
err
}
}
...
@@ -1031,7 +1031,7 @@ func pushDownConn(c *webClient, id string, up conn.Up, tracks []conn.UpTrack, re
...
@@ -1031,7 +1031,7 @@ func pushDownConn(c *webClient, id string, up conn.Up, tracks []conn.UpTrack, re
}
}
return
err
return
err
}
}
done
,
err
:=
replaceTracks
(
down
,
requested
,
up
)
done
,
err
:=
replaceTracks
(
down
,
requested
)
if
err
!=
nil
||
!
done
{
if
err
!=
nil
||
!
done
{
return
err
return
err
}
}
...
...
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