455 gst_object_unref (pipe); |
455 gst_object_unref (pipe); |
456 } |
456 } |
457 |
457 |
458 void delayed_link() |
458 void delayed_link() |
459 { |
459 { |
|
460 GstElement* pa; |
460 xmlfile = "delayed_link"; |
461 xmlfile = "delayed_link"; |
461 std_log(LOG_FILENAME_LINE, "Test Started delayed_link"); |
462 std_log(LOG_FILENAME_LINE, "Test Started delayed_link"); |
462 fail_unless (gst_element_register (NULL, "parsetestelement", |
463 fail_unless (gst_element_register (NULL, "parsetestelement", |
463 GST_RANK_NONE, GST_TYPE_PARSE_TEST_ELEMENT)); |
464 GST_RANK_NONE, GST_TYPE_PARSE_TEST_ELEMENT)); |
464 |
465 |
465 /* This tests the delayed linking support in parse_launch by creating |
466 /* This tests the delayed linking support in parse_launch by creating |
466 * a test element based on bin, which contains a fakesrc and a sometimes |
467 * a test element based on bin, which contains a fakesrc and a sometimes |
467 * pad-template, and trying to link to a fakesink. When the bin transitions |
468 * pad-template, and trying to link to a fakesink. When the bin transitions |
468 * to paused it adds a pad, which should get linked to the fakesink */ |
469 * to paused it adds a pad, which should get linked to the fakesink */ |
|
470 |
|
471 pa = gst_element_factory_make ("parsetestelement", NULL); |
|
472 gst_object_unref (pa); |
|
473 //g_free (pa); |
469 run_delayed_test |
474 run_delayed_test |
470 ("parsetestelement name=src ! fakesink silent=true name=sink", "sink", |
475 ("parsetestelement name=src ! fakesink silent=true name=sink", "sink", |
471 TRUE); |
476 TRUE); |
472 |
477 |
473 /* Test, but this time specifying both pad names */ |
478 /* Test, but this time specifying both pad names */ |