diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-12-31 17:49:56 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-12-31 17:50:05 -0500 |
commit | f929447c16feaabeb2524d134f7e700d5c6352c0 (patch) | |
tree | 9485d95f02a655de40dfe470df98443269809fb8 | |
parent | 8fbd8761f693cb02914ecad3da2eed441364955d (diff) |
Set ptime/maxptime as optional parameters on the TP codetc
-rw-r--r-- | telepathy-farsight/stream.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/telepathy-farsight/stream.c b/telepathy-farsight/stream.c index f58cda4..ea95dfa 100644 --- a/telepathy-farsight/stream.c +++ b/telepathy-farsight/stream.c @@ -1257,6 +1257,13 @@ fs_codecs_to_tp (TfStream *stream, g_strdup (param->value)); } + if (fsc->ABI.ABI.ptime) + g_hash_table_insert (params, g_strdup ("ptime"), + g_strdup_printf ("%u", fsc->ABI.ABI.ptime)); + if (fsc->ABI.ABI.maxptime) + g_hash_table_insert (params, g_strdup ("maxptime"), + g_strdup_printf ("%u", fsc->ABI.ABI.maxptime)); + g_value_init (&codec, TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CODEC); g_value_take_boxed (&codec, dbus_g_type_specialized_construct (TP_STRUCT_TYPE_MEDIA_STREAM_HANDLER_CODEC)); |