summaryrefslogtreecommitdiff
path: root/tools/gst-typefind.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-03-10 12:51:45 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-03-10 12:51:45 +0000
commit007cff6d75995bda6ab24c9f7be7137686bc163d (patch)
treea004a802d8721fd1b0f421505e67993e373b2089 /tools/gst-typefind.c
parente82e7b604ac0db2979fa83109102116f0ba47b40 (diff)
Doc updates.
Original commit message from CVS: * docs/design/part-MT-refcounting.txt: * docs/design/part-clocks.txt: * docs/design/part-gstelement.txt: * docs/design/part-gstobject.txt: * docs/design/part-standards.txt: * gst/gstbin.c: (gst_bin_add_func), (gst_bin_add), (gst_bin_remove_func), (gst_bin_remove): * gst/gstbin.h: * gst/gstbuffer.c: * gst/gstcaps.h: * testsuite/clock/clock1.c: (main): * testsuite/clock/clock2.c: (gst_clock_debug), (element_wait), (main): * testsuite/dlopen/loadgst.c: (do_test): * testsuite/refcounting/bin.c: (add_remove_test1), (add_remove_test2), (main): * testsuite/refcounting/element.c: (main): * testsuite/refcounting/element_pad.c: (main): * testsuite/refcounting/pad.c: (main): * tools/gst-launch.c: (sigint_handler_sighandler): * tools/gst-typefind.c: (main): Doc updates. Added doc about clock. removed gst_bin_iterate_recurse_up(), marked methods for removal. Fix more testsuites.
Diffstat (limited to 'tools/gst-typefind.c')
-rw-r--r--tools/gst-typefind.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gst-typefind.c b/tools/gst-typefind.c
index 7ea6034e9..bf463431b 100644
--- a/tools/gst-typefind.c
+++ b/tools/gst-typefind.c
@@ -52,8 +52,10 @@ main (int argc, char *argv[])
g_assert (GST_IS_ELEMENT (source));
typefind = gst_element_factory_make ("typefind", "typefind");
g_assert (GST_IS_ELEMENT (typefind));
- gst_bin_add_many (GST_BIN (pipeline), source, typefind, NULL);
- gst_element_link (source, typefind);
+ gst_bin_add (GST_BIN (pipeline), source);
+ gst_bin_add (GST_BIN (pipeline), typefind);
+ gst_pad_link (gst_element_get_pad (source, "src"),
+ gst_element_get_pad (typefind, "sink"));
g_signal_connect (G_OBJECT (typefind), "have-type",
G_CALLBACK (have_type_handler), NULL);