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");
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);
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");
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);