5 main (int argc, char *argv[])
11 gst_init (&argc, &argv);
14 g_print ("usage: %s <filename>\n", argv[0]);
20 gst_parse_launch ("filesrc name=my_filesrc ! mad ! osssink", &error);
22 fprintf (stderr, "Parse error: %s", error->message);
26 filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "my_filesrc");
27 g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL);
29 gst_element_set_state (pipeline, GST_STATE_PLAYING);
31 while (gst_bin_iterate (GST_BIN (pipeline)));
33 gst_element_set_state (pipeline, GST_STATE_NULL);