# HG changeset patch # User Mike Ruprecht # Date 1220234322 0 # Node ID 3b4b9795f987067b059c957ed15c5c7793d2e8ed # Parent 6ab96d5d8ac6bd28e60c62a257a963660330eab0 purple_media_add_stream should only add a stream to one session. Also clarified documentation. diff -r 6ab96d5d8ac6 -r 3b4b9795f987 libpurple/media.c --- a/libpurple/media.c Mon Sep 01 01:23:26 2008 +0000 +++ b/libpurple/media.c Mon Sep 01 01:58:42 2008 +0000 @@ -1180,7 +1180,7 @@ return FALSE; } } - if (type & PURPLE_MEDIA_VIDEO) { + else if (type & PURPLE_MEDIA_VIDEO) { type_direction = purple_media_to_fs_stream_direction(type & PURPLE_MEDIA_VIDEO); if (!purple_media_add_stream_internal(media, sess_id, who, diff -r 6ab96d5d8ac6 -r 3b4b9795f987 libpurple/media.h --- a/libpurple/media.h Mon Sep 01 01:23:26 2008 +0000 +++ b/libpurple/media.h Mon Sep 01 01:58:42 2008 +0000 @@ -336,11 +336,16 @@ /** * Adds a stream to a session. * + * It only adds a stream to one audio session or video session as + * the @c sess_id must be unique between sessions. + * * @param media The media object to find the session in. * @param sess_id The session id of the session to add the stream to. * @param who The name of the remote user to add the stream for. * @param type The type of stream to create. * @param transmitter The transmitter to use for the stream. + * @param num_params The number of parameters to pass to Farsight. + * @param params The parameters to pass to Farsight. * * @return @c TRUE The stream was added successfully, @c FALSE otherwise. */