[totem] Disable seeking in DVD menus
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] Disable seeking in DVD menus
- Date: Thu, 8 Apr 2010 12:42:28 +0000 (UTC)
commit 4f6595a6f421c256c54210187ce5f0aa597072e5
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 b56ebef..79f4e18 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -1567,7 +1567,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);
@@ -5418,6 +5422,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]