[brasero/gnome-2-28] 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/gnome-2-28] Fix #602872 - User is unable to fast-forward neither rewing sound preview
- Date: Mon, 14 Dec 2009 16:56:59 +0000 (UTC)
commit 976d5f63e738da836dc8803a9a946e916d62b98a
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-player.c | 4 +---
3 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/libbrasero-utils/brasero-io.c b/libbrasero-utils/brasero-io.c
index ebeb4bb..7c18dbc 100644
--- a/libbrasero-utils/brasero-io.c
+++ b/libbrasero-utils/brasero-io.c
@@ -849,7 +849,6 @@ brasero_io_set_metadata_attributes (GFileInfo *info,
g_file_info_set_attribute_boolean (info, BRASERO_IO_HAS_AUDIO, metadata->has_audio);
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 a52845d..6be416c 100644
--- a/libbrasero-utils/brasero-metadata.c
+++ b/libbrasero-utils/brasero-metadata.c
@@ -474,8 +474,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,
@@ -487,6 +492,7 @@ brasero_metadata_is_seekable (BraseroMetadata *self)
priv->info->is_seekable = seekable;
end:
+
gst_query_unref (query);
}
diff --git a/src/brasero-player.c b/src/brasero-player.c
index ad47dd6..8312130 100644
--- a/src/brasero-player.c
+++ b/src/brasero-player.c
@@ -901,8 +901,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);
@@ -924,7 +923,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]