[rygel] server: Fix TimeSeekRange header formatting
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: Fix TimeSeekRange header formatting
- Date: Mon, 4 May 2020 19:54:24 +0000 (UTC)
commit 00a1c9344af3f1a68b3bfbab44cd7f358877262d
Author: Jens Georg <mail jensge org>
Date: Mon May 4 21:51:43 2020 +0200
server: Fix TimeSeekRange header formatting
Fixes #161
src/librygel-server/rygel-http-time-seek-response.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/librygel-server/rygel-http-time-seek-response.vala
b/src/librygel-server/rygel-http-time-seek-response.vala
index 9f0eb0c1..905c83f8 100644
--- a/src/librygel-server/rygel-http-time-seek-response.vala
+++ b/src/librygel-server/rygel-http-time-seek-response.vala
@@ -204,6 +204,7 @@ public class Rygel.HTTPTimeSeekResponse : Rygel.HTTPResponseElement {
// object owner. To form the response, we just use what is set.
var response = new StringBuilder ();
+ var locale = Intl.setlocale (LocaleCategory.NUMERIC, "C");
response.append ("npt=");
response.append_printf ("%.3f-",
(double) this.start_time / TimeSpan.SECOND);
@@ -217,6 +218,7 @@ public class Rygel.HTTPTimeSeekResponse : Rygel.HTTPResponseElement {
} else {
response.append ("/*");
}
+ Intl.setlocale (LocaleCategory.NUMERIC, locale);
if ((this.start_byte != UNSPECIFIED) &&
(this.end_byte != UNSPECIFIED)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]