mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-20 19:10:18 +00:00
fix gst-typefind to work with new typefinding
Original commit message from CVS: fix gst-typefind to work with new typefinding
This commit is contained in:
parent
0dd7202b34
commit
fa36b6da15
1 changed files with 4 additions and 3 deletions
|
@ -18,13 +18,14 @@ int max_iterations = 100;
|
||||||
void
|
void
|
||||||
gst_caps_print (GstCaps *caps)
|
gst_caps_print (GstCaps *caps)
|
||||||
{
|
{
|
||||||
g_print ("%s\n", gst_caps_to_string (caps));
|
gchar *caps_str = gst_caps_to_string (caps);
|
||||||
|
g_print ("%s\n", caps_str);
|
||||||
|
g_free (caps_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
have_type_handler (GstElement *typefind, gpointer data)
|
have_type_handler (GstElement *typefind, guint probability, GstCaps *caps, gpointer unused)
|
||||||
{
|
{
|
||||||
GstCaps *caps = (GstCaps *) data;
|
|
||||||
gst_caps_print (caps);
|
gst_caps_print (caps);
|
||||||
FOUND = TRUE;
|
FOUND = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue