[brasero] In case of an image make sure the audio stream type is well set.
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] In case of an image make sure the audio stream type is well set.
- Date: Sat, 15 Aug 2009 13:39:07 +0000 (UTC)
commit 85db63fbcfbbfbc3b98f41352a702412727a04a8
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat Aug 15 14:36:59 2009 +0200
In case of an image make sure the audio stream type is well set.
libbrasero-burn/brasero-image-properties.c | 53 +++++++++++++++++++--------
1 files changed, 37 insertions(+), 16 deletions(-)
---
diff --git a/libbrasero-burn/brasero-image-properties.c b/libbrasero-burn/brasero-image-properties.c
index 82b87bf..638506b 100644
--- a/libbrasero-burn/brasero-image-properties.c
+++ b/libbrasero-burn/brasero-image-properties.c
@@ -299,22 +299,43 @@ brasero_image_properties_response (GtkFileChooser *chooser,
path);
g_free (path);
- if (priv->is_video && format == BRASERO_IMAGE_FORMAT_BIN) {
- gboolean res;
- GValue *value;
-
- value = g_new0 (GValue, 1);
- g_value_init (value, G_TYPE_INT);
-
- res = brasero_image_type_chooser_get_VCD_type (BRASERO_IMAGE_TYPE_CHOOSER (priv->format));
- if (res)
- g_value_set_int (value, BRASERO_SVCD);
- else
- g_value_set_int (value, BRASERO_SVCD);
-
- brasero_burn_session_tag_add (BRASERO_BURN_SESSION (priv->session),
- BRASERO_VCD_TYPE,
- value);
+ if (priv->is_video) {
+ if (format == BRASERO_IMAGE_FORMAT_CUE) {
+ gboolean res;
+ GValue *value;
+
+ value = g_new0 (GValue, 1);
+ g_value_init (value, G_TYPE_INT);
+
+ res = brasero_image_type_chooser_get_VCD_type (BRASERO_IMAGE_TYPE_CHOOSER (priv->format));
+ if (res)
+ g_value_set_int (value, BRASERO_SVCD);
+ else
+ g_value_set_int (value, BRASERO_SVCD);
+
+ brasero_burn_session_tag_add (BRASERO_BURN_SESSION (priv->session),
+ BRASERO_VCD_TYPE,
+ value);
+
+ /* This is a (S)VCD set to MP2 */
+ value = g_new0 (GValue, 1);
+ g_value_init (value, G_TYPE_INT);
+ g_value_set_int (value, BRASERO_AUDIO_FORMAT_MP2);
+ brasero_burn_session_tag_add (BRASERO_BURN_SESSION (priv->session),
+ BRASERO_DVD_STREAM_FORMAT,
+ value);
+ }
+ else {
+ GValue *value;
+
+ /* This is a DVD set to AC3 */
+ value = g_new0 (GValue, 1);
+ g_value_init (value, G_TYPE_INT);
+ g_value_set_int (value, BRASERO_AUDIO_FORMAT_AC3);
+ brasero_burn_session_tag_add (BRASERO_BURN_SESSION (priv->session),
+ BRASERO_DVD_STREAM_FORMAT,
+ value);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]