[gst-devel] Re: [gst-cvs] wtay gstreamer: gstreamer/gst/ gstreamer/gst/autoplug/ gstreamer/gst/elements/ gstreamer/gst/registries/ gstreamer/gst/schedulers/ gstreamer/libs/gst/bytestream/ gstreamer/tests/sched/ gstreamer/testsuite/cleanup/ gstreamer/tools/

Andy Wingo wingo at pobox.com
Wed May 8 14:17:01 CEST 2002


On Wed, 08 May 2002, Wim Taymans wrote:

> Index: dynamic-pipeline.c
> ===================================================================
> RCS file: /cvsroot/gstreamer/gstreamer/tests/sched/dynamic-pipeline.c,v
> retrieving revision 1.11
> retrieving revision 1.12
> diff -u -d -r1.11 -r1.12
> +++ dynamic-pipeline.c	8 May 2002 20:40:47 -0000	1.12
> @@ -20,7 +20,6 @@
>      fakesink1 = gst_element_factory_make("fakesink", "fakesink1");
>      fakesink2 = gst_element_factory_make("fakesink", "fakesink2");
>      pipe1 = gst_pipeline_new("pipe1");
> -    pipe2 = gst_pipeline_new("pipe2");
>      
>      /* make the first pipeline */
>      gst_bin_add (GST_BIN(pipe1), fakesrc);
> @@ -37,8 +36,10 @@
>      gst_object_ref(GST_OBJECT(fakesrc));
>      gst_bin_remove(GST_BIN(pipe1), fakesrc);
>      gst_bin_remove(GST_BIN(pipe1), fakesink1);
> -    gst_object_unref(GST_OBJECT(pipe1));
> +
> +    gst_object_unref (GST_OBJECT (pipe1));
>      
> +    pipe2 = gst_pipeline_new("pipe2");
>      /* make a new pipeline */
>      gst_bin_add (GST_BIN(pipe2), fakesink2);

This is a crucial part of the test, having two pipelines at the same
time. I'm going to revert the change, unless there's a reason not to.
I'll comment the code a little more.

regards,

wingo.




More information about the gstreamer-devel mailing list