gstreamer/ext/dash
Nirbheek Chauhan a06ddd182d dash: Don't use sscanf + glib format modifiers
We do not have a way to know the format modifiers to use with string
functions provided by the system. `G_GUINT64_FORMAT` and other string
modifiers only work for glib string formatting functions. We cannot
use them for string functions provided by the stdlib. See:
https://developer.gnome.org/glib/stable/glib-Basic-Types.html#glib-Basic-Types.description

F.ex.
```
 ../ext/dash/gstxmlhelper.c: In function 'gst_xml_helper_get_prop_unsigned_integer_64':
../ext/dash/gstxmlhelper.c:473:40: error: unknown conversion type character 'l' in format [-Werror=format=]
     if (sscanf ((gchar *) prop_string, "%" G_GUINT64_FORMAT,
                                        ^~~
In file included from /builds/nirbheek/cerbero/cerbero-build/dist/windows_x86/include/glib-2.0/glib/gtypes.h:32,
                 from /builds/nirbheek/cerbero/cerbero-build/dist/windows_x86/include/glib-2.0/glib/galloca.h:32,
                 from /builds/nirbheek/cerbero/cerbero-build/dist/windows_x86/include/glib-2.0/glib.h:30,
                 from /builds/nirbheek/cerbero/cerbero-build/dist/windows_x86/include/gstreamer-1.0/gst/gst.h:27,
                 from ../ext/dash/gstxmlhelper.h:26,
                 from ../ext/dash/gstxmlhelper.c:22:
/builds/nirbheek/cerbero/cerbero-build/dist/windows_x86/lib/glib-2.0/include/glibconfig.h:69:28: note: format string is defined here
 #define G_GUINT64_FORMAT "llu"
                            ^
../ext/dash/gstxmlhelper.c:473:40: error: too many arguments for format [-Werror=format-extra-args]
     if (sscanf ((gchar *) prop_string, "%" G_GUINT64_FORMAT,
                                        ^~~
```

In the process, we're also following the DASH MPD spec more closely
now, which specifies that ranges must follow RFC 2616 section 14.35.1:
https://tools.ietf.org/html/rfc2616#page-138
2020-02-27 09:42:33 +00:00
..
gstdash_debug.h dash: use same debug category for dashdemux and the mpd parser 2013-07-01 14:22:02 -03:00
gstdashdemux.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstdashdemux.h dash: move parser nodes/types to separated files 2019-12-05 09:06:37 +00:00
gstdashsink.c dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00
gstdashsink.h dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00
gstmpdadaptationsetnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdadaptationsetnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdbaseurlnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdbaseurlnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdclient.c dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00
gstmpdclient.h dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00
gstmpdcontentcomponentnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdcontentcomponentnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpddescriptortypenode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpddescriptortypenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdhelper.c dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00
gstmpdhelper.h dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00
gstmpdlocationnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdlocationnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdmetricsnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdmetricsnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdmetricsrangenode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdmetricsrangenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdmultsegmentbasenode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdmultsegmentbasenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdparser.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdparser.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdperiodnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdperiodnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdprograminformationnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdprograminformationnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdreportingnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdreportingnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdrepresentationbasenode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdrepresentationbasenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdrepresentationnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdrepresentationnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdrootnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdrootnode.h dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdsegmentbasenode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmentbasenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmentlistnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmentlistnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmenttemplatenode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdsegmenttemplatenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmenttimelinenode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmenttimelinenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsegmenturlnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdsegmenturlnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsubrepresentationnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsubrepresentationnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsubsetnode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdsubsetnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdurltypenode.c dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdurltypenode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstmpdutctimingnode.c dash: add set/get property for nodes 2020-01-03 20:50:27 +00:00
gstmpdutctimingnode.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
gstplugin.c dash: Remove spurious condition check and remove unused debug category 2020-01-07 04:11:27 +00:00
gstxmlhelper.c dash: Don't use sscanf + glib format modifiers 2020-02-27 09:42:33 +00:00
gstxmlhelper.h dash: Generate an XML content from object. 2020-01-03 20:50:27 +00:00
meson.build dashsink: Add new sink to produce DASH content 2020-01-03 20:50:27 +00:00