pidgin/pidgin

Fix some GWarnings during finch's startup

6 weeks ago, Gary Kramlich
01b94846bb60
Parents ba5964adbf7f
Children 4666203609e6
Fix some GWarnings during finch's startup

Testing Done:
Ran via `G_DEBUG=fatal-warnings gdb --ex run finch3` and verified I was able to make it to the contact list.

Reviewed at https://reviews.imfreedom.org/r/1592/
--- a/finch/gntmedia.c Sat Aug 13 22:08:20 2022 -0500
+++ b/finch/gntmedia.c Mon Aug 15 20:29:12 2022 -0500
@@ -378,6 +378,13 @@
PurpleMediaElementInfo *audio_sink = NULL;
const char *pref;
+ purple_prefs_add_none(FINCH_PREFS_ROOT "/vvconfig");
+ purple_prefs_add_none(FINCH_PREFS_ROOT "/vvconfig/audio");
+ purple_prefs_add_none(FINCH_PREFS_ROOT "/vvconfig/audio/src");
+ purple_prefs_add_none(FINCH_PREFS_ROOT "/vvconfig/audio/sink");
+ purple_prefs_add_string(FINCH_PREFS_ROOT "/vvconfig/audio/src/device", "");
+ purple_prefs_add_string(FINCH_PREFS_ROOT "/vvconfig/audio/sink/device", "");
+
pref = purple_prefs_get_string(
FINCH_PREFS_ROOT "/vvconfig/audio/src/device");
if (pref)