Do gst_init first in helloworld, so you can supply gst parameters.

Original commit message from CVS:
Do gst_init first in helloworld, so you can supply gst parameters.
Correct name of frequency cap to rate, in esdsink.  Now connects properly.
This commit is contained in:
Richard Boulton 2001-01-03 19:12:21 +00:00
parent 2211a01d91
commit 126569f47c
2 changed files with 4 additions and 4 deletions

View file

@ -15,13 +15,13 @@ int main(int argc,char *argv[])
{
GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
gst_init(&argc,&argv);
if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]);
exit(-1);
}
gst_init(&argc,&argv);
/* create a new bin to hold the elements */
bin = gst_bin_new("bin");

View file

@ -15,13 +15,13 @@ int main(int argc,char *argv[])
{
GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
gst_init(&argc,&argv);
if (argc != 2) {
g_print("usage: %s <filename>\n", argv[0]);
exit(-1);
}
gst_init(&argc,&argv);
/* create a new bin to hold the elements */
bin = gst_bin_new("bin");