[rhythmbox] Fix <audio> tags in Brasero project files
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] Fix <audio> tags in Brasero project files
- Date: Tue, 3 Nov 2009 11:47:31 +0000 (UTC)
commit bce5ee67e4b46443ab42a6a18d76b26ea61296df
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 3 11:45:24 2009 +0000
Fix <audio> tags in Brasero project files
We're supposed to have one <audio> tag per audio track,
not one for the whole file.
https://bugzilla.gnome.org/show_bug.cgi?id=600513
.../rb-disc-recorder-plugin.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c b/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
index 381638b..3998e1f 100644
--- a/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
+++ b/plugins/brasero-disc-recorder/rb-disc-recorder-plugin.c
@@ -294,15 +294,15 @@ rb_disc_recorder_plugin_write_audio_project (const gchar *name,
if (success < 0)
goto error;
- success = xmlTextWriterStartElement (project, (xmlChar *) "audio");
- if (success < 0)
- goto error;
-
do {
RhythmDBEntry *entry;
const char *str;
xmlChar *escaped;
+ success = xmlTextWriterStartElement (project, (xmlChar *) "audio");
+ if (success < 0)
+ goto error;
+
gtk_tree_model_get (model, &iter, 0, &entry, -1);
str = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_LOCATION);
@@ -375,11 +375,11 @@ rb_disc_recorder_plugin_write_audio_project (const gchar *name,
goto error;
}
*/
- } while (gtk_tree_model_iter_next (model, &iter));
- success = xmlTextWriterEndElement (project); /* audio */
- if (success < 0)
- goto error;
+ success = xmlTextWriterEndElement (project); /* audio */
+ if (success < 0)
+ goto error;
+ } while (gtk_tree_model_iter_next (model, &iter));
success = xmlTextWriterEndElement (project); /* track */
if (success < 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]