diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-13 15:27:01 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-03-13 15:27:01 +0000 |
commit | a967370df58163d7f5219a285a8331b3f79930a3 (patch) | |
tree | d6c4b98d58ce96273f7e99f836d4bbef0e7e2cce /tools/gst-typefind.c | |
parent | b8edc59edb7c71b3edcc9d51bf6f6d145e60df91 (diff) |
gst-indent run on core
Original commit message from CVS:
gst-indent run on core
Diffstat (limited to 'tools/gst-typefind.c')
-rw-r--r-- | tools/gst-typefind.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/gst-typefind.c b/tools/gst-typefind.c index d6ae0c867..225031967 100644 --- a/tools/gst-typefind.c +++ b/tools/gst-typefind.c @@ -15,15 +15,17 @@ gboolean FOUND = FALSE; gchar *filename = NULL; void -gst_caps_print (const char *filename, const GstCaps *caps) +gst_caps_print (const char *filename, const GstCaps * caps) { gchar *caps_str = gst_caps_to_string (caps); + g_print ("%s - %s\n", filename, caps_str); g_free (caps_str); } void -have_type_handler (GstElement *typefind, guint probability, const GstCaps *caps, gpointer unused) +have_type_handler (GstElement * typefind, guint probability, + const GstCaps * caps, gpointer unused) { gst_caps_print (filename, caps); FOUND = TRUE; @@ -40,11 +42,11 @@ main (int argc, char *argv[]) gst_init (&argc, &argv); - if (argc < 2) { + if (argc < 2) { g_print ("Please give a filename to typefind\n\n"); return 1; } - + pipeline = gst_pipeline_new (NULL); source = gst_element_factory_make ("filesrc", "source"); g_assert (GST_IS_ELEMENT (source)); @@ -52,8 +54,8 @@ main (int argc, char *argv[]) g_assert (GST_IS_ELEMENT (typefind)); gst_bin_add_many (GST_BIN (pipeline), source, typefind, NULL); gst_element_link (source, typefind); - g_signal_connect (G_OBJECT (typefind), "have-type", - G_CALLBACK (have_type_handler), NULL); + g_signal_connect (G_OBJECT (typefind), "have-type", + G_CALLBACK (have_type_handler), NULL); while (i < argc) { FOUND = FALSE; @@ -63,7 +65,7 @@ main (int argc, char *argv[]) /* set to play */ gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING); - while (!FOUND) { + while (!FOUND) { if (!gst_bin_iterate (GST_BIN (pipeline))) break; } |