[rhythmbox] podcast: use 'channel' instead of 'data->channel' as they are equal
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: use 'channel' instead of 'data->channel' as they are equal
- Date: Tue, 1 Jun 2021 11:59:14 +0000 (UTC)
commit dffecf3e9128ea31da665665cf4b33d519b55f31
Author: crvi <crvisqr gmail com>
Date: Wed Mar 17 15:01:42 2021 +0530
podcast: use 'channel' instead of 'data->channel' as they are equal
podcast/rb-podcast-add-dialog.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/podcast/rb-podcast-add-dialog.c b/podcast/rb-podcast-add-dialog.c
index a87883aad..867f4953a 100644
--- a/podcast/rb-podcast-add-dialog.c
+++ b/podcast/rb-podcast-add-dialog.c
@@ -298,7 +298,7 @@ parse_cb (RBPodcastChannel *channel, GError *error, gpointer user_data)
if (data->reset_count != data->dialog->priv->reset_count) {
rb_debug ("dialog reset while parsing");
- rb_podcast_parse_channel_unref (data->channel);
+ rb_podcast_parse_channel_unref (channel);
g_object_unref (data->dialog);
g_free (data);
return;
@@ -341,10 +341,10 @@ parse_cb (RBPodcastChannel *channel, GError *error, gpointer user_data)
}
}
- if (data->channel->is_opml) {
+ if (channel->is_opml) {
GList *l;
/* convert each item into its own channel */
- for (l = data->channel->posts; l != NULL; l = l->next) {
+ for (l = channel->posts; l != NULL; l = l->next) {
RBPodcastChannel *channel;
RBPodcastItem *item;
@@ -383,18 +383,18 @@ parse_cb (RBPodcastChannel *channel, GError *error, gpointer user_data)
a = gtk_tree_model_get_path (GTK_TREE_MODEL (data->dialog->priv->feed_model), &iter);
b = gtk_tree_model_get_path (GTK_TREE_MODEL (data->dialog->priv->feed_model),
&data->dialog->priv->selected_feed);
if (gtk_tree_path_compare (a, b) == 0) {
- add_posts_for_feed (data->dialog, data->channel);
+ add_posts_for_feed (data->dialog, channel);
}
gtk_tree_path_free (a);
gtk_tree_path_free (b);
}
} else {
- insert_search_result (data->dialog, data->channel, data->single);
+ insert_search_result (data->dialog, channel, data->single);
update_feed_status (data->dialog);
}
- rb_podcast_parse_channel_unref (data->channel);
+ rb_podcast_parse_channel_unref (channel);
g_object_unref (data->dialog);
g_free (data);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]