[Bug 673976] pbutils: codec description should include profile

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Feb 26 17:56:54 PST 2015


Olivier CrĂȘte <olivier.crete at ocrete.ca> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
                 CC|                            |olivier.crete at ocrete.ca
         Resolution|FIXED                       |---

--- Comment #3 from Olivier CrĂȘte <olivier.crete at ocrete.ca> ---
You got the string manipulations wrong..

Can we replace the horribly ugly strings with \000 in it with a array of
2-element tuples, something like

struct Names {
const gchar *nick;
const gchar *name;

static const struct Names names[] = {{"high","High"}, .... , {NULL, NULL}};

Test program:

#include <gst/gst.h>

main (int   argc,
      char *argv[])
  GstCaps *caps;

  gst_init(&argc, &argv);

  caps = gst_caps_from_string ("video/x-h264, profile=(string)high");
  g_printf("%s\n", gst_pb_utils_get_codec_description(caps));

  return 0;

You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.

More information about the gstreamer-bugs mailing list