[totem/gnome-3-4] main: Don't forget to clear seeking on close
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-4] main: Don't forget to clear seeking on close
- Date: Fri, 29 Jun 2012 11:07:53 +0000 (UTC)
commit c6c7d97f976025633c19578c43667ae67fc9b808
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 29 11:58:23 2012 +0100
main: Don't forget to clear seeking on close
If we had opened a file, got a remembered position to restore,
but never actually got a change in the seekable property, we wouldn't
have clear the seek to position.
This should fix bizarre behaviour if you're skipping between streams
too quickly for GStreamer to see the stream is seekable.
https://bugzilla.gnome.org/show_bug.cgi?id=676434
src/totem-object.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 18db1be..c2eb3e8 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1695,6 +1695,9 @@ totem_action_set_mrl_with_warning (TotemObject *totem,
gboolean retval = TRUE;
if (totem->mrl != NULL) {
+ totem->seek_to = 0;
+ totem->seek_to_start = 0;
+
totem_save_position (totem);
g_free (totem->mrl);
totem->mrl = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]