Reinitialise gstreamer
wilson1994
willemsthomas1994 at gmail.com
Tue Nov 12 12:10:53 UTC 2019
Hi,
If I reinitialise gstreamer (gst_init (&argc, &argv) ) after previously
initialising and deinitialising it, then the creation of a new pipeline
fails. You can reproduce it with this very simple example:
#include <gst/gst.h>
int main(int argc, char *argv[]) {
GstElement *pipeline;
gst_init (&argc, &argv);
pipeline = gst_pipeline_new ("test-pipeline");
g_assert(pipeline);
gst_object_unref (pipeline);
gst_deinit();
gst_init (&argc, &argv);
pipeline = gst_pipeline_new ("test-pipeline");
g_assert(pipeline);
gst_object_unref (pipeline);
return 0;
}
at the second g_assert(pipeline) I get the following error:
ERROR:main.c:20:main: assertion failed: (pipeline)
Bail out! ERROR:main.c:20:main: assertion failed: (pipeline)
Is this a bug, or is it not allowed to deinit gstreamer if you want to
initialize it again later?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list