[banshee/gapless-ng: 832/836] [libbanshee] Simplify conditional
- From: Christopher James Halse Rogers <chrishr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gapless-ng: 832/836] [libbanshee] Simplify conditional
- Date: Thu, 25 Feb 2010 22:45:49 +0000 (UTC)
commit 80bc9467b816b1ea9bf5b0aa70dca818c4c5bc3e
Author: Christopher James Halse Rogers <raof ubuntu com>
Date: Thu Feb 25 13:14:54 2010 +1100
[libbanshee] Simplify conditional
libbanshee/banshee-player-pipeline.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libbanshee/banshee-player-pipeline.c b/libbanshee/banshee-player-pipeline.c
index 82a236d..c4eec0a 100644
--- a/libbanshee/banshee-player-pipeline.c
+++ b/libbanshee/banshee-player-pipeline.c
@@ -53,11 +53,8 @@ bp_pipeline_process_tag (const GstTagList *tag_list, const gchar *tag_name, Bans
value = gst_tag_list_get_value_index (tag_list, tag_name, 0);
- if (value != NULL) {
-
- if (player->tag_found_cb != NULL) {
- player->tag_found_cb (player, tag_name, value);
- }
+ if (value != NULL && player->tag_found_cb != NULL) {
+ player->tag_found_cb (player, tag_name, value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]