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,7 +160,8 @@ static void
on_changed (GSettings * settings, gchar * key, GstGSettingsAudioSink * sink)
{
gboolean changed = FALSE;
if (!g_str_has_suffix (key, "audiosink"));
if (!g_str_has_suffix (key, "audiosink"))
return;
GST_OBJECT_LOCK (sink);

View file

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

View file

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

View file

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