diff --git a/sflphone-gtk/src/actions.c b/sflphone-gtk/src/actions.c index 83a75171e67b0223e00335aa834e38ea6ae07b38..37dfea4751361e471f823e006efe04842654434f 100644 --- a/sflphone-gtk/src/actions.c +++ b/sflphone-gtk/src/actions.c @@ -587,7 +587,7 @@ sflphone_fill_codec_list() gchar** order = (gchar**)dbus_get_active_codec_list(); gchar** details; gchar** pl; - + for(pl=order; *order; order++) { codec_t * c = g_new0(codec_t, 1); @@ -601,7 +601,7 @@ sflphone_fill_codec_list() c->_bandwidth = atof(details[3]); codec_list_add(c); } - + for(pl=codecs; *codecs; codecs++) { details = (gchar **)dbus_codec_details(atoi(*codecs)); diff --git a/src/audio/audiocodec.h b/src/audio/audiocodec.h index 6289a0626815cd2a10a9a8ca5f2291a48a955a1c..39651240b1be0ab896c300610a1fd4d4612fec48 100644 --- a/src/audio/audiocodec.h +++ b/src/audio/audiocodec.h @@ -30,16 +30,18 @@ public: // _active = false; _hasDynamicPayload = (_payload >= 96 && _payload <= 127) ? true : false; + + } virtual ~AudioCodec() {} - /** * @return the number of bytes decoded */ virtual int codecDecode(short *, unsigned char *, unsigned int) = 0; virtual int codecEncode(unsigned char *, short *, unsigned int) = 0; + /** Value used for SDP negotiation */ std::string getCodecName() { return _codecName; } int getPayload() { return _payload; }