[totem] Empty the saved position rather than NULL it
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Empty the saved position rather than NULL it
- Date: Tue, 22 Sep 2009 21:26:42 +0000 (UTC)
commit b58f210029c1cf987df92da1bb112aa578a4a766
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon Sep 21 18:24:37 2009 +0100
Empty the saved position rather than NULL it
This stops GVfs crashing when trying to serialise a NULL value.
src/totem-uri.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-uri.c b/src/totem-uri.c
index 4bacf96..a39358b 100644
--- a/src/totem-uri.c
+++ b/src/totem-uri.c
@@ -714,7 +714,7 @@ totem_save_position (Totem *totem)
* half-way through, then later continue watching it to the end, the mid-way saved position will be removed when we finish the
* stream. Only do this for non-live streams. */
if (stream_length > 0) {
- g_file_set_attribute_string (file, SAVE_POSITION_FILE_ATTRIBUTE, NULL, G_FILE_QUERY_INFO_NONE, NULL, &error);
+ g_file_set_attribute_string (file, SAVE_POSITION_FILE_ATTRIBUTE, "", G_FILE_QUERY_INFO_NONE, NULL, &error);
if (error != NULL) {
g_warning ("g_file_set_attribute_string failed: %s", error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]