[totem] main: Don't forget to clear seeking on close
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Don't forget to clear seeking on close
- Date: Fri, 29 Jun 2012 11:07:58 +0000 (UTC)
commit e6ffb10388ca052dc06404ad8ad163619d131281
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 db22d8d..945b98a 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1626,6 +1626,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]