This pid information will be used to each multimedia framework to keep session behavior.
[Version] 0.11.31
[Issue Type] backward compatibility
Change-Id: I4f52b7f29d28b1f5d3ad0388e2df42f6d3bf32aa
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
*stream_type = node->stream_type;
*option = node->option[index];
- if (ext_info)
- *ext_info = node->ext_info[index];
+ if (ext_info) {
+ if (focus_type != FOCUS_TYPE_BOTH) {
+ *ext_info = node->ext_info[index];
+ } else {
+ /* In case of FOCUS_TYPE_BOTH, it should be used only for
+ * session backward compatibility. ext_info will contain pid of the node */
+ gchar *buf = g_strdup_printf("%d", node->pid);
+ if (buf) {
+ *ext_info = buf;
+ debug_msg("copied node->pid to ext_info [%s]", *ext_info);
+ }
+ }
+ }
ret = MM_ERROR_NONE;
break;
}
#include <gio/gio.h>
+#include "include/mm_sound_mgr_focus.h"
#include "include/mm_sound_mgr_focus_dbus.h"
#include "include/mm_sound_mgr_focus_ipc.h"
#include "../include/mm_sound_dbus.h"
else
_method_call_return_error(invocation, ret);
+ /* In case of FOCUS_TYPE_BOTH, it should be used only for
+ * session backward compatibility. ext_info contains pid of the node,
+ * and should be freed here. */
+ if (focus_type == FOCUS_TYPE_BOTH && ext_info)
+ g_free(ext_info);
+
debug_fleave();
}
Name: libmm-sound
Summary: MMSound Package contains client lib and sound_server binary
-Version: 0.11.30
+Version: 0.11.31
Release: 0
Group: System/Libraries
License: Apache-2.0