[Telepathy-commits] [telepathy-gabble/master] jingle/payload-types: define a MEDIA_STREAM_TYPE_AUDIO constant
Will Thompson
will.thompson at collabora.co.uk
Thu Dec 11 08:30:25 PST 2008
---
tests/twisted/jingle/payload-types.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/jingle/payload-types.py b/tests/twisted/jingle/payload-types.py
index f536202..8536de2 100644
--- a/tests/twisted/jingle/payload-types.py
+++ b/tests/twisted/jingle/payload-types.py
@@ -12,6 +12,7 @@ import gabbletest
import dbus
import time
+MEDIA_STREAM_TYPE_AUDIO = 0
def test(q, bus, conn, stream):
jt = jingletest.JingleTest(stream, 'test at localhost', 'foo at bar.com/Foo')
@@ -65,7 +66,7 @@ def test(q, bus, conn, stream):
# Test that codec parameters are correctly sent in <parameter> children of
# <payload-type> rather than as attributes of the latter.
- media_iface.RequestStreams(handle, [0]) # 0 == MEDIA_STREAM_TYPE_AUDIO
+ media_iface.RequestStreams(handle, [MEDIA_STREAM_TYPE_AUDIO])
# S-E gets notified about new session handler, and calls Ready on it
e = q.expect('dbus-signal', signal='NewSessionHandler')
--
1.5.6.5
More information about the Telepathy-commits
mailing list