2 * Copyright (C) 2004 Benjamin Otte <in7y118@public.uni-hamburg.de>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public
15 * License along with this library; if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 main (gint argc, gchar ** argv)
28 gst_init (&argc, &argv);
30 g_print ("setting up...\n");
32 pipeline = gst_parse_launch ("pipeline.( { fakesrc ! fakesink } )", &error);
33 g_assert (error == NULL);
37 g_print ("running...\n");
38 if (gst_element_set_state (pipeline, GST_STATE_PLAYING) != GST_STATE_SUCCESS)
39 g_assert_not_reached ();
40 while (i < 100 && gst_bin_iterate (GST_BIN (pipeline)))
43 g_print ("cleaning up... (%d iterations)\n", i);
45 gst_object_unref (pipeline);