Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Apr 3, 2021
1 parent ffca46a commit 0c983c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/node/islb/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ func (s *islbServer) FindNode(ctx context.Context, req *proto.FindNodeRequest) (

nodes := []*ion.Node{}

if nid == "" {
nid = "*"
}

// find node by sid from reids
mkey := s.conf.Global.Dc + "/" + nid + "/" + sid
log.Infof("islb.FindNode: mkey => %v", mkey)
Expand Down
4 changes: 4 additions & 0 deletions pkg/util/sdp.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ func ParseSDP(sdpstr string) ([]*ion.Stream, error) {
msid := m.Attributes.Get("msid")
//fmt.Printf("msid id = %v\n", msid)

if msid == "" {
continue
}

strs := strings.Split(msid, " ")
streamID := strs[0]
trackID := msid
Expand Down

0 comments on commit 0c983c1

Please sign in to comment.