return buf;
}
+
+#ifdef __TIZEN__
+void pa_core_dump_sink_inputs(pa_core *core) {
+ pa_sink_input *si = NULL;
+ uint32_t idx = 0;
+
+ pa_log_warn(">> Start dumping (%u) sink-inputs", pa_idxset_size(core->sink_inputs));
+ PA_IDXSET_FOREACH(si, core->sink_inputs, idx)
+ pa_sink_input_dump_info(si);
+ pa_log_warn("<< Dump finished!");
+}
+#endif
\ No newline at end of file
if (pa_idxset_size(data->sink->inputs) >= PA_MAX_INPUTS_PER_SINK) {
pa_log_warn("Failed to create sink input: too many inputs per sink.");
+#ifdef __TIZEN__
+ pa_core_dump_sink_inputs(core);
+#endif
return -PA_ERR_TOOLARGE;
}
pa_cvolume_snprint_verbose(old_ratio_str, sizeof(old_ratio_str), &old_ratio, &i->channel_map, true),
pa_cvolume_snprint_verbose(new_ratio_str, sizeof(new_ratio_str), ratio, &i->channel_map, true));
}
+
+#ifdef __TIZEN__
+void pa_sink_input_dump_info(pa_sink_input *i) {
+ pa_assert(i);
+
+ pa_log_warn("#%4u: client(%5d), sink(%2u), state(%d), muted(%d), app(pid:%s, org:%s, binary:%s), media(name:%s, role:%s)",
+ i->index,
+ i->client ? (int)i->client->index : -1,
+ i->sink->index, i->state, i->muted,
+ pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_PROCESS_ID),
+ pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_PROCESS_ID_ORIGIN),
+ pa_proplist_gets(i->proplist, PA_PROP_APPLICATION_PROCESS_BINARY),
+ pa_proplist_gets(i->proplist, PA_PROP_MEDIA_NAME),
+ pa_proplist_gets(i->proplist, PA_PROP_MEDIA_ROLE));
+}
+#endif
\ No newline at end of file