Hi,
Whenever I add an rtpbin element to a gstreamer pipeline, it is impossible for
me to completely unref the pipeline, causing my program to deadlock. Has
anyone seen this before (ver 0.10.11)? I've attached a small test program
that triggers the issue. Other random elements I tested seem to be ok (tee,
adder, etc.), only rtpbin is giving me problems.
Regards,
~Scott
#include <assert.h>
#include <glib.h>
#include <gst/gst.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
gst_init(NULL, NULL);
GstElement *rtpPipeline = gst_pipeline_new(NULL);
GstElement *rtpBin = gst_element_factory_make("rtpbin", NULL);
assert(gst_bin_add(GST_BIN(rtpPipeline), rtpBin) == TRUE);
printf("pipeline refcount=%d\n", GST_OBJECT_REFCOUNT(rtpPipeline));
gst_object_unref(rtpPipeline);
printf("pipeline refcount=%d\n", GST_OBJECT_REFCOUNT(rtpPipeline));
gst_object_unref(rtpPipeline); /* deadlock here!!! */
printf("pipeline refcount=%d\n", GST_OBJECT_REFCOUNT(rtpPipeline));
printf("\ndone.\n");
return 0;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Farsight-devel mailing list
Farsight-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/farsight-devel