mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gsettings: Fix 'if statement has empty body' compiler warning
This commit is contained in:
parent
3482b7b219
commit
5a6b7fba4d
4 changed files with 9 additions and 8 deletions
|
@ -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 &&
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue