mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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:
parent
2211a01d91
commit
126569f47c
2 changed files with 4 additions and 4 deletions
|
@ -15,13 +15,13 @@ int main(int argc,char *argv[])
|
||||||
{
|
{
|
||||||
GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
|
GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
|
||||||
|
|
||||||
|
gst_init(&argc,&argv);
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
g_print("usage: %s <filename>\n", argv[0]);
|
g_print("usage: %s <filename>\n", argv[0]);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_init(&argc,&argv);
|
|
||||||
|
|
||||||
/* create a new bin to hold the elements */
|
/* create a new bin to hold the elements */
|
||||||
bin = gst_bin_new("bin");
|
bin = gst_bin_new("bin");
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,13 @@ int main(int argc,char *argv[])
|
||||||
{
|
{
|
||||||
GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
|
GstElement *bin, *disksrc, *parse, *decoder, *audiosink;
|
||||||
|
|
||||||
|
gst_init(&argc,&argv);
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
g_print("usage: %s <filename>\n", argv[0]);
|
g_print("usage: %s <filename>\n", argv[0]);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_init(&argc,&argv);
|
|
||||||
|
|
||||||
/* create a new bin to hold the elements */
|
/* create a new bin to hold the elements */
|
||||||
bin = gst_bin_new("bin");
|
bin = gst_bin_new("bin");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue