rtspsrc: serialise/deserialise floats without changing locale
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 29 Dec 2010 15:54:46 +0000 (15:54 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 29 Dec 2010 15:54:46 +0000 (15:54 +0000)
commit96830324a577caae9e2d77e346b98d4a29cc4a76
tree1c241c0f4994d1632059f2e345aa594491a5601a
parentfafd0b7bc35f60d077fc3bc1287454778619d7ca
rtspsrc: serialise/deserialise floats without changing locale

Use g_ascii_dtostr() and g_ascii_strtod() to serialise/deserialise
floating point numbers, instead of ugly hacks that switch locale
before and after calling libc functions (which is not a good idea
in a multi-threaded application).
gst/rtsp/gstrtspsrc.c