"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/modules/module-stream-restore.c" between
pulseaudio-14.0.tar.xz and pulseaudio-14.2.tar.xz

About: PulseAudio is a networked sound server (for POSIX OSes), a proxy for your sound applications.

module-stream-restore.c  (pulseaudio-14.0.tar.xz):module-stream-restore.c  (pulseaudio-14.2.tar.xz)
skipping to change at line 2262 skipping to change at line 2262
pa_xfree(item->entry_name); pa_xfree(item->entry_name);
entry_free(item->entry); entry_free(item->entry);
pa_xfree(item); pa_xfree(item);
} }
#endif #endif
} }
int pa__init(pa_module*m) { int pa__init(pa_module*m) {
pa_modargs *ma = NULL; pa_modargs *ma = NULL;
struct userdata *u; struct userdata *u;
char *fname; char *state_path;
pa_sink_input *si; pa_sink_input *si;
pa_source_output *so; pa_source_output *so;
uint32_t idx; uint32_t idx;
bool restore_device = true, restore_volume = true, restore_muted = true; bool restore_device = true, restore_volume = true, restore_muted = true;
#ifdef HAVE_DBUS #ifdef HAVE_DBUS
pa_datum key; pa_datum key;
bool done; bool done;
#endif #endif
skipping to change at line 2320 skipping to change at line 2320
/* A little bit earlier than module-intended-roles ... */ /* A little bit earlier than module-intended-roles ... */
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SINK_INPUT_NEW], PA_HOOK_EARLY, (pa_hook_cb_t) sink_input_new_hook_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SINK_INPUT_NEW], PA_HOOK_EARLY, (pa_hook_cb_t) sink_input_new_hook_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_NEW ], PA_HOOK_EARLY, (pa_hook_cb_t) source_output_new_hook_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_NEW ], PA_HOOK_EARLY, (pa_hook_cb_t) source_output_new_hook_callback, u);
} }
if (restore_volume || restore_muted) { if (restore_volume || restore_muted) {
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SINK_INPUT_FIXATE ], PA_HOOK_EARLY, (pa_hook_cb_t) sink_input_fixate_hook_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SINK_INPUT_FIXATE ], PA_HOOK_EARLY, (pa_hook_cb_t) sink_input_fixate_hook_callback, u);
pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_FIX ATE], PA_HOOK_EARLY, (pa_hook_cb_t) source_output_fixate_hook_callback, u); pa_module_hook_connect(m, &m->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_FIX ATE], PA_HOOK_EARLY, (pa_hook_cb_t) source_output_fixate_hook_callback, u);
} }
if (!(fname = pa_state_path("stream-volumes", true))) if (!(state_path = pa_state_path(NULL, true)))
goto fail; goto fail;
if (!(u->database = pa_database_open(fname, true))) { if (!(u->database = pa_database_open(state_path, "stream-volumes", true, tru
pa_log("Failed to open volume database '%s': %s", fname, pa_cstrerror(er e))) {
rno)); pa_xfree(state_path);
pa_xfree(fname);
goto fail; goto fail;
} }
pa_log_info("Successfully opened database file '%s'.", fname); pa_xfree(state_path);
pa_xfree(fname);
clean_up_db(u); clean_up_db(u);
if (fill_db(u, pa_modargs_get_value(ma, "fallback_table", NULL)) < 0) if (fill_db(u, pa_modargs_get_value(ma, "fallback_table", NULL)) < 0)
goto fail; goto fail;
#ifdef HAVE_DBUS #ifdef HAVE_DBUS
u->dbus_protocol = pa_dbus_protocol_get(u->core); u->dbus_protocol = pa_dbus_protocol_get(u->core);
u->dbus_entries = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_ string_compare_func, NULL, (pa_free_cb_t) dbus_entry_free); u->dbus_entries = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_ string_compare_func, NULL, (pa_free_cb_t) dbus_entry_free);
 End of changes. 4 change blocks. 
8 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)