gsettings: Fix 'if statement has empty body' compiler warning

This commit is contained in:
Sebastian Dröge 2012-03-06 14:57:45 +01:00
parent 3482b7b219
commit 5a6b7fba4d
4 changed files with 9 additions and 8 deletions

View file

@ -160,8 +160,9 @@ static void
on_changed (GSettings * settings, gchar * key, GstGSettingsAudioSink * sink) on_changed (GSettings * settings, gchar * key, GstGSettingsAudioSink * sink)
{ {
gboolean changed = FALSE; gboolean changed = FALSE;
if (!g_str_has_suffix (key, "audiosink"));
return; if (!g_str_has_suffix (key, "audiosink"))
return;
GST_OBJECT_LOCK (sink); GST_OBJECT_LOCK (sink);
if ((sink->profile == GST_GSETTINGS_AUDIOSINK_PROFILE_SOUNDS && if ((sink->profile == GST_GSETTINGS_AUDIOSINK_PROFILE_SOUNDS &&

View file

@ -104,8 +104,8 @@ fail:
static void static void
on_changed (GSettings * settings, gchar * key, GstGSettingsAudioSrc * src) on_changed (GSettings * settings, gchar * key, GstGSettingsAudioSrc * src)
{ {
if (!g_str_equal (key, "audiosrc")); if (!g_str_equal (key, "audiosrc"))
return; return;
gst_gsettings_audio_src_change_child (src); gst_gsettings_audio_src_change_child (src);
} }

View file

@ -104,8 +104,8 @@ fail:
static void static void
on_changed (GSettings * settings, gchar * key, GstGSettingsVideoSink * sink) on_changed (GSettings * settings, gchar * key, GstGSettingsVideoSink * sink)
{ {
if (!g_str_has_suffix (key, "videosink")); if (!g_str_has_suffix (key, "videosink"))
return; return;
gst_gsettings_video_sink_change_child (sink); gst_gsettings_video_sink_change_child (sink);
} }

View file

@ -104,8 +104,8 @@ fail:
static void static void
on_changed (GSettings * settings, gchar * key, GstGSettingsVideoSrc * src) on_changed (GSettings * settings, gchar * key, GstGSettingsVideoSrc * src)
{ {
if (!g_str_equal (key, "videosrc")); if (!g_str_equal (key, "videosrc"))
return; return;
gst_gsettings_video_src_change_child (src); gst_gsettings_video_src_change_child (src);
} }