Skip to content

Commit

Permalink
settings: don't crash when GSETTINGS_BACKEND is not in env
Browse files Browse the repository at this point in the history
Fixes #8.
  • Loading branch information
ensonic committed Mar 23, 2014
1 parent ec70af6 commit 93a78ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/core/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ bt_settings_determine_audiosink_name (const BtSettings * const self,
}
if (!element_name) {
// support running unit tests on virtual machines
if (!strcmp (g_getenv ("GSETTINGS_BACKEND"), "memory")) {
if (!g_strcmp0 (g_getenv ("GSETTINGS_BACKEND"), "memory")) {
GST_INFO ("no real audiosink found, falling back to fakesink");
element_name = g_strdup ("fakesink");
}
Expand Down

0 comments on commit 93a78ac

Please sign in to comment.