media: Farstream 0.1.1 compatibility fix
commit00cee1f4be989644d757bb99fe178b1ad5ada9ba
authorJakub Adam <jakub.adam@ktknet.cz>
Sun, 6 Jan 2013 21:19:40 +0000 (6 22:19 +0100)
committerJakub Adam <jakub.adam@ktknet.cz>
Mon, 7 Jan 2013 21:22:31 +0000 (7 22:22 +0100)
tree16a8cf4b9af32442655871273cd5af7ed9b62a98
parent43023fcce0291eef377a13c8fb79a3d59041223e
media: Farstream 0.1.1 compatibility fix

Because of change in Farstream, purple_media_get_codecs() can return
NULL until any needed codec configuration parameters have been
discovered.

As a consequence we have to wait until both local candidates and codec
parameters are gathered before firing sipe_media_call->candidates_prepared_cb().

Also some functions and fields were renamed to better depict their
purpose:

* sipe_media_call->candidates_prepared_cb to
  sipe_media_call->stream_initialized_cb
* candidates_prepared_cb() to stream_initialized_cb()
* sipe_backend_candidates_prepared() to sipe_backend_stream_initialized()
  and gets new sipe_backend_stream * argument

This fixes broken video calls.
src/api/sipe-backend.h
src/core/sipe-media.c
src/miranda/miranda-media.c
src/purple/purple-media.c
src/telepathy/telepathy-stubs.c