[banshee/gapless-ng: 829/836] [libbanshee] Fix coding style issues
- From: Christopher James Halse Rogers <chrishr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gapless-ng: 829/836] [libbanshee] Fix coding style issues
- Date: Thu, 25 Feb 2010 22:45:33 +0000 (UTC)
commit 0f5bdcff900abfba1a224c66662384b34c413c96
Author: Christopher James Halse Rogers <raof ubuntu com>
Date: Thu Feb 25 10:12:03 2010 +1100
[libbanshee] Fix coding style issues
libbanshee/banshee-player-replaygain.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/libbanshee/banshee-player-replaygain.c b/libbanshee/banshee-player-replaygain.c
index cab4c94..bc2b364 100644
--- a/libbanshee/banshee-player-replaygain.c
+++ b/libbanshee/banshee-player-replaygain.c
@@ -43,7 +43,7 @@ bp_replaygain_db_to_linear(gdouble value)
static void
pad_block_cb (GstPad *srcPad, gboolean blocked, gpointer user_data) {
- if (blocked == FALSE) {
+ if (!blocked) {
return;
}
@@ -77,7 +77,7 @@ pad_block_cb (GstPad *srcPad, gboolean blocked, gpointer user_data) {
player->rgvolume_in_pipeline = FALSE;
}
- if (gst_pad_is_blocked (srcPad) == TRUE) {
+ if (gst_pad_is_blocked (srcPad)) {
gst_pad_set_blocked_async(srcPad, FALSE, &pad_block_cb, player);
}
@@ -103,14 +103,14 @@ GstElement* _bp_rgvolume_new (BansheePlayer *player)
void _bp_rgvolume_print_volume(BansheePlayer *player)
{
g_return_if_fail (IS_BANSHEE_PLAYER (player));
- if ((player->replaygain_enabled == TRUE) && (player->rgvolume != NULL)) {
- gdouble scale;
+ if (player->replaygain_enabled && (player->rgvolume != NULL)) {
+ gdouble scale;
- g_object_get (G_OBJECT (player->rgvolume), "result-gain", &scale, NULL);
+ g_object_get (G_OBJECT (player->rgvolume), "result-gain", &scale, NULL);
- bp_debug ("scaled volume: %.2f (ReplayGain) * %.2f (User) = %.2f",
- bp_replaygain_db_to_linear(scale), player->current_volume,
- bp_replaygain_db_to_linear(scale) * player->current_volume);
+ bp_debug ("scaled volume: %.2f (ReplayGain) * %.2f (User) = %.2f",
+ bp_replaygain_db_to_linear(scale), player->current_volume,
+ bp_replaygain_db_to_linear(scale) * player->current_volume);
}
}
@@ -144,7 +144,7 @@ bp_replaygain_set_enabled (BansheePlayer *player, gboolean enabled)
g_return_if_fail (IS_BANSHEE_PLAYER (player));
player->replaygain_enabled = enabled;
bp_debug ("%s ReplayGain", enabled ? "Enabled" : "Disabled");
- _bp_replaygain_pipeline_rebuild(player);
+ _bp_replaygain_pipeline_rebuild (player);
}
P_INVOKE gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]