• Tim-Philipp Müller's avatar
    rtp: cache meta tag quarks and add more utility functions for metas · 4a28e649
    Tim-Philipp Müller authored
    Every g_quark_from_static_string() is a hash table lookup serialised
    on the global quark lock in GLib. Let's just look up the two quarks
    we need once and cache them locally for future use. While we're at it,
    add new utility functions for the two most commonly used tags
    (audio + video). Make first argument a gpointer so we don't have to
    cast and make the code ugly. These are used for logging purposes
    only anyway.
    4a28e649
gstrtpgsmpay.c 5.33 KB