diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2009-09-21 18:24:37 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2009-09-22 22:26:29 +0100 |
commit | b58f210029c1cf987df92da1bb112aa578a4a766 (patch) | |
tree | 705dee87707001a2987d857e3253b9c7e7bc5e82 | |
parent | 0cb7a40b56b668f67cbffe2ba0b9a296a68b7fd6 (diff) | |
download | totem-b58f210029c1cf987df92da1bb112aa578a4a766.tar.gz |
Empty the saved position rather than NULL it
This stops GVfs crashing when trying to serialise a NULL value.
-rw-r--r-- | 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 4bacf9641..a39358b14 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); |