From cce146f5e0f703ddfa243459a929cfeddf169ad5 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandresavard@msavard.(none)> Date: Tue, 28 Jun 2011 15:53:04 -0400 Subject: [PATCH] #6109: Store recorded file path on client side --- sflphone-client-gnome/src/dbus/dbus.c | 17 ++++++++++++++++- sflphone-common/src/audio/recordable.cpp | 3 --- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/sflphone-client-gnome/src/dbus/dbus.c b/sflphone-client-gnome/src/dbus/dbus.c index 33f04afbb9..0ab683b2c7 100644 --- a/sflphone-client-gnome/src/dbus/dbus.c +++ b/sflphone-client-gnome/src/dbus/dbus.c @@ -489,8 +489,23 @@ conference_removed_cb (DBusGProxy *proxy UNUSED, const gchar* confID, void * foo static void record_playback_filepath_cb (DBusGProxy *proxy UNUSED, const gchar *id, const gchar *filepath) { + callable_obj_t *call = NULL; + conference_obj_t *conf = NULL; + DEBUG("DBUS: Filepath for call %s: %s", id, filepath); - + + call = calllist_get_call(current_calls, id); + conf = conferencelist_get(current_calls, id); + + if(call) { + if(call->_recordfile == NULL) + call->_recordfile = g_strdup(filepath); + } + else if(conf) { + if(conf->_recordfile == NULL) + conf->_recordfile = g_strdup(filepath); + } + } diff --git a/sflphone-common/src/audio/recordable.cpp b/sflphone-common/src/audio/recordable.cpp index 33a1d466e0..c1be5447d5 100644 --- a/sflphone-common/src/audio/recordable.cpp +++ b/sflphone-common/src/audio/recordable.cpp @@ -58,12 +58,9 @@ std::string Recordable::getFileName() return recAudio.getFileName(); } - void Recordable::setRecordingSmplRate (int smplRate) { - recAudio.setSndSamplingRate (smplRate); - } int Recordable::getRecordingSmplRate() const -- GitLab