Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
3adbc74e
Commit
3adbc74e
authored
14 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
change print into log.debug
parent
23067014
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/jingle_rtp.py
+5
-6
5 additions, 6 deletions
src/common/jingle_rtp.py
with
5 additions
and
6 deletions
src/common/jingle_rtp.py
+
5
−
6
View file @
3adbc74e
...
@@ -171,6 +171,7 @@ class JingleRTPContent(JingleContent):
...
@@ -171,6 +171,7 @@ class JingleRTPContent(JingleContent):
def
_on_gst_message
(
self
,
bus
,
message
):
def
_on_gst_message
(
self
,
bus
,
message
):
if
message
.
type
==
gst
.
MESSAGE_ELEMENT
:
if
message
.
type
==
gst
.
MESSAGE_ELEMENT
:
name
=
message
.
structure
.
get_name
()
name
=
message
.
structure
.
get_name
()
log
.
debug
(
'
gst element message: %s: %s
'
%
(
name
,
message
))
if
name
==
'
farsight-new-active-candidate-pair
'
:
if
name
==
'
farsight-new-active-candidate-pair
'
:
pass
pass
elif
name
==
'
farsight-recv-codecs-changed
'
:
elif
name
==
'
farsight-recv-codecs-changed
'
:
...
@@ -190,17 +191,15 @@ class JingleRTPContent(JingleContent):
...
@@ -190,17 +191,15 @@ class JingleRTPContent(JingleContent):
self
.
send_candidate
(
candidate
)
self
.
send_candidate
(
candidate
)
elif
name
==
'
farsight-component-state-changed
'
:
elif
name
==
'
farsight-component-state-changed
'
:
state
=
message
.
structure
[
'
state
'
]
state
=
message
.
structure
[
'
state
'
]
print
message
.
structure
[
'
component
'
],
state
if
state
==
farsight
.
STREAM_STATE_FAILED
:
if
state
==
farsight
.
STREAM_STATE_FAILED
:
reason
=
xmpp
.
Node
(
'
reason
'
)
reason
=
xmpp
.
Node
(
'
reason
'
)
reason
.
setTag
(
'
failed-transport
'
)
reason
.
setTag
(
'
failed-transport
'
)
self
.
session
.
remove_content
(
self
.
creator
,
self
.
name
,
reason
)
self
.
session
.
remove_content
(
self
.
creator
,
self
.
name
,
reason
)
elif
name
==
'
farsight-error
'
:
elif
name
==
'
farsight-error
'
:
print
'
Farsight error #%d!
'
%
message
.
structure
[
'
error-no
'
]
log
.
error
(
'
Farsight error #%d!
\n
Message: %s
\n
Debug: %s
'
%
(
print
'
Message: %s
'
%
message
.
structure
[
'
error-msg
'
]
message
.
structure
[
'
error-no
'
],
print
'
Debug: %s
'
%
message
.
structure
[
'
debug-msg
'
]
message
.
structure
[
'
error-msg
'
],
else
:
message
.
structure
[
'
debug-msg
'
])
print
name
elif
message
.
type
==
gst
.
MESSAGE_ERROR
:
elif
message
.
type
==
gst
.
MESSAGE_ERROR
:
# TODO: Fix it to fallback to videotestsrc anytime an error occur,
# TODO: Fix it to fallback to videotestsrc anytime an error occur,
# or raise an error, Jingle way
# or raise an error, Jingle way
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment