mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
tools/gst-inspect.c: improve output of caps a bit
Original commit message from CVS: 2004-01-11 Benjamin Otte <in7y118@public.uni-hamburg.de> * tools/gst-inspect.c: (print_caps): improve output of caps a bit
This commit is contained in:
parent
d1e5984afa
commit
61fbbfc278
2 changed files with 22 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-01-11 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
|
* tools/gst-inspect.c: (print_caps):
|
||||||
|
improve output of caps a bit
|
||||||
|
|
||||||
2004-01-11 David Schleef <ds@schleef.org>
|
2004-01-11 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/gstbuffer.c: (gst_buffer_create_sub): Subbuffers should
|
* gst/gstbuffer.c: (gst_buffer_create_sub): Subbuffers should
|
||||||
|
|
|
@ -9,9 +9,25 @@
|
||||||
static void
|
static void
|
||||||
print_caps (const GstCaps *caps, const gchar *pfx)
|
print_caps (const GstCaps *caps, const gchar *pfx)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s, *tmp;
|
||||||
|
char **v;
|
||||||
|
|
||||||
s = gst_caps_to_string (caps);
|
s = gst_caps_to_string (caps);
|
||||||
|
|
||||||
|
tmp = g_strdup_printf ("\n %s", pfx);
|
||||||
|
v = g_strsplit (s, ", ", -1);
|
||||||
|
g_free (s);
|
||||||
|
s = g_strjoinv (tmp, v);
|
||||||
|
g_strfreev (v);
|
||||||
|
g_free (tmp);
|
||||||
|
|
||||||
|
tmp = g_strdup_printf ("\n%s", pfx);
|
||||||
|
v = g_strsplit (s, "; ", -1);
|
||||||
|
g_free (s);
|
||||||
|
s = g_strjoinv (tmp, v);
|
||||||
|
g_free (tmp);
|
||||||
|
g_strfreev (v);
|
||||||
|
|
||||||
g_print ("%s%s\n", pfx, s);
|
g_print ("%s%s\n", pfx, s);
|
||||||
g_free(s);
|
g_free(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue