[totem/gnome-2-28] Disable seeking in DVD menus
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-2-28] Disable seeking in DVD menus
- Date: Mon, 12 Apr 2010 16:18:13 +0000 (UTC)
commit 217dafd8e91083fda327372a9ff744fad0411fab
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 8 13:41:07 2010 +0100
Disable seeking in DVD menus
If we enabled seeking in menus, either we'd miss
navigation events, or we'd need to parse the MPEG stream
anyway. So just disable DVD menus right now.
https://bugzilla.gnome.org/show_bug.cgi?id=607556
src/backend/bacon-video-widget-gst-0.10.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 093934d..a856d70 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1502,7 +1502,11 @@ bvw_handle_element_message (BaconVideoWidget *bvw, GstMessage *msg)
is_menu |= (cmd == GST_NAVIGATION_COMMAND_DOWN);
}
}
- bvw->priv->is_menu = is_menu;
+ /* Are we in a menu now? */
+ if (bvw->priv->is_menu != is_menu) {
+ bvw->priv->is_menu = is_menu;
+ g_object_notify (G_OBJECT (bvw), "seekable");
+ }
}
gst_query_unref (cmds_q);
@@ -5049,6 +5053,9 @@ bacon_video_widget_is_seekable (BaconVideoWidget * bvw)
old_seekable = bvw->priv->seekable;
+ if (bvw->priv->is_menu != FALSE)
+ return FALSE;
+
if (bvw->priv->seekable == -1) {
GstQuery *query;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]