[brasero] Fix #602872 - User is unable to fast-forward neither rewing sound preview
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix #602872 - User is unable to fast-forward neither rewing sound preview
- Date: Wed, 2 Dec 2009 18:41:32 +0000 (UTC)
commit 212f71fda6dc24e66cbcbc9ddc90899d33864bb6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Dec 2 13:07:18 2009 +0100
Fix #602872 - User is unable to fast-forward neither rewing sound preview
(This should be in 2.28 stable as well)
libbrasero-utils/brasero-io.c | 1 -
libbrasero-utils/brasero-metadata.c | 10 ++++++++--
src/brasero-audio-disc.c | 1 -
src/brasero-player.c | 4 +---
4 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/libbrasero-utils/brasero-io.c b/libbrasero-utils/brasero-io.c
index 2e0a6b9..d1e015d 100644
--- a/libbrasero-utils/brasero-io.c
+++ b/libbrasero-utils/brasero-io.c
@@ -867,7 +867,6 @@ brasero_io_set_metadata_attributes (GFileInfo *info,
g_file_info_set_attribute_boolean (info, BRASERO_IO_HAS_VIDEO, metadata->has_video);
g_file_info_set_attribute_boolean (info, BRASERO_IO_IS_SEEKABLE, metadata->is_seekable);
-
if (metadata->snapshot)
g_file_info_set_attribute_object (info, BRASERO_IO_THUMBNAIL, G_OBJECT (metadata->snapshot));
diff --git a/libbrasero-utils/brasero-metadata.c b/libbrasero-utils/brasero-metadata.c
index 96d8dd4..f0c5694 100644
--- a/libbrasero-utils/brasero-metadata.c
+++ b/libbrasero-utils/brasero-metadata.c
@@ -499,8 +499,13 @@ brasero_metadata_is_seekable (BraseroMetadata *self)
priv = BRASERO_METADATA_PRIVATE (self);
priv->info->is_seekable = FALSE;
- query = gst_query_new_seeking (GST_FORMAT_DEFAULT);
- if (!gst_element_query (priv->source, query))
+
+ /* NOTE: apparently GST_FORMAT_DEFAULT does not work here */
+ query = gst_query_new_seeking (GST_FORMAT_TIME);
+
+ /* NOTE: it works better now on the pipeline than on the source as we
+ * used to do */
+ if (!gst_element_query (priv->pipeline, query))
goto end;
gst_query_parse_seeking (query,
@@ -512,6 +517,7 @@ brasero_metadata_is_seekable (BraseroMetadata *self)
priv->info->is_seekable = seekable;
end:
+
gst_query_unref (query);
}
diff --git a/src/brasero-audio-disc.c b/src/brasero-audio-disc.c
index 7d5e951..eaf35a6 100644
--- a/src/brasero-audio-disc.c
+++ b/src/brasero-audio-disc.c
@@ -926,7 +926,6 @@ brasero_audio_disc_session_changed (BraseroSessionCfg *session,
BRASERO_TRACK (track));
error = brasero_status_get_error (status);
- g_print ("ERR %i\n", error->code);
if (!error)
brasero_audio_disc_file_type_error_dialog (self, uri);
else if (error->code == BRASERO_BURN_ERROR_FILE_FOLDER) {
diff --git a/src/brasero-player.c b/src/brasero-player.c
index 15ef68d..461f7f5 100644
--- a/src/brasero-player.c
+++ b/src/brasero-player.c
@@ -908,8 +908,7 @@ brasero_player_metadata_completed (GObject *obj,
/* video */
brasero_player_create_controls_stream (player, TRUE);
gtk_range_set_value (GTK_RANGE (player->priv->progress), 0.0);
-
- if (g_file_info_get_attribute_boolean (info, BRASERO_IO_IS_SEEKABLE))
+ if (g_file_info_get_attribute_boolean (info,BRASERO_IO_IS_SEEKABLE))
gtk_widget_set_sensitive (player->priv->progress, TRUE);
else
gtk_widget_set_sensitive (player->priv->progress, FALSE);
@@ -931,7 +930,6 @@ brasero_player_metadata_completed (GObject *obj,
brasero_player_create_controls_stream (player, FALSE);
gtk_widget_hide (player->priv->notebook);
gtk_range_set_value (GTK_RANGE (player->priv->progress), 0.0);
-
if (g_file_info_get_attribute_boolean (info, BRASERO_IO_IS_SEEKABLE))
gtk_widget_set_sensitive (player->priv->progress, TRUE);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]