mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
55bc3d863c
commit
3c79a3d66f
2 changed files with 10 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue