Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
49819437
Commit
49819437
authored
Nov 08, 2010
by
Saul Ibarra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error when stream statistics is None
parent
b8e17af0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sessions.py
blink/sessions.py
+3
-2
No files found.
blink/sessions.py
View file @
49819437
...
...
@@ -400,8 +400,9 @@ class SessionItem(QObject):
def
_SH_TimerFired
(
self
):
stats
=
self
.
video_stream
.
statistics
if
self
.
video_stream
else
self
.
audio_stream
.
statistics
self
.
latency
=
stats
[
'rtt'
][
'avg'
]
/
1000
self
.
packet_loss
=
int
(
stats
[
'rx'
][
'packets_lost'
]
*
100.0
/
stats
[
'rx'
][
'packets'
])
if
stats
[
'rx'
][
'packets'
]
else
0
if
stats
is
not
None
:
self
.
latency
=
stats
[
'rtt'
][
'avg'
]
/
1000
self
.
packet_loss
=
int
(
stats
[
'rx'
][
'packets_lost'
]
*
100.0
/
stats
[
'rx'
][
'packets'
])
if
stats
[
'rx'
][
'packets'
]
else
0
self
.
duration
+=
timedelta
(
seconds
=
1
)
@
run_in_gui_thread
...
...
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