[gstreamer-bugs] [Bug 382982] New: [apedemux] Fails to read track gain or other doubles

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Dec 6 04:29:39 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=382982

  GStreamer | gst-plugins-good | Ver: HEAD CVS

           Summary: [apedemux] Fails to read track gain or other doubles
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: slomo at ubuntu.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Hi,
the attached patch allows apedemux to correctly parse track gain, album gain or
other doubles, no matter what the current locale is.

sscanf() only tries the current locale and thus breaks if for example the
decimal point is another character than '.'

g_strtod() parses using the locale settings and if this fails using the C
locale settings, i.e. '.' for decimal point.

This fixes the apev2mux unit test when running with de_DE for example.

Bye


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list