Make the autoplugging example work again with an ugly hack until we have autoplug2 merged...

Original commit message from CVS:
Make the autoplugging example work again with an ugly hack until we
have autoplug2 merged...
This commit is contained in:
Wim Taymans 2001-03-02 17:56:02 +00:00
parent 55bc3d863c
commit 3c79a3d66f
2 changed files with 10 additions and 6 deletions

View file

@ -28,7 +28,6 @@ int main(int argc,char *argv[])
pipeline = gst_pipeline_new("pipeline");
g_assert(pipeline != NULL);
gst_bin_add(GST_BIN(thread), pipeline);
/* create a disk reader */
disksrc = gst_elementfactory_make("disksrc", "disk_source");
@ -50,8 +49,11 @@ int main(int argc,char *argv[])
exit(-1);
}
/* make it ready */
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_READY);
// hmmmm hack? FIXME
GST_FLAG_UNSET (pipeline, GST_BIN_FLAG_MANAGER);
gst_bin_add(GST_BIN(thread), pipeline);
/* start playing */
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PLAYING);

View file

@ -28,7 +28,6 @@ int main(int argc,char *argv[])
pipeline = gst_pipeline_new("pipeline");
g_assert(pipeline != NULL);
gst_bin_add(GST_BIN(thread), pipeline);
/* create a disk reader */
disksrc = gst_elementfactory_make("disksrc", "disk_source");
@ -50,8 +49,11 @@ int main(int argc,char *argv[])
exit(-1);
}
/* make it ready */
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_READY);
// hmmmm hack? FIXME
GST_FLAG_UNSET (pipeline, GST_BIN_FLAG_MANAGER);
gst_bin_add(GST_BIN(thread), pipeline);
/* start playing */
gst_element_set_state(GST_ELEMENT(thread), GST_STATE_PLAYING);