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)
{
gboolean changed = FALSE;
if (!g_str_has_suffix (key, "audiosink"));
return;
if (!g_str_has_suffix (key, "audiosink"))
return;
GST_OBJECT_LOCK (sink);
if ((sink->profile == GST_GSETTINGS_AUDIOSINK_PROFILE_SOUNDS &&

View file

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

View file

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

View file

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