filesrc = gst_bin_get_by_name (GST_BIN (pipeline), "my_filesrc");
g_object_set (filesrc, "location", argv[1], NULL);
+ g_object_unref (filesrc);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
gst_pad_set_active (pad2, FALSE);
gst_check_teardown_src_pad (sink1);
gst_check_teardown_src_pad (sink2);
+ gst_object_unref (bus);
gst_object_unref (pipeline);
}
gst_pad_set_active (pad2, FALSE);
gst_check_teardown_src_pad (sink1);
gst_check_teardown_src_pad (sink2);
+ gst_object_unref (bus);
gst_object_unref (pipeline);
}
fail_if (peer_elem == NULL, "Could not retrieve peer %s", peer);
sinkpad = gst_element_get_static_pad (peer_elem, "sink");
+ gst_object_unref (peer_elem);
fail_if (sinkpad == NULL, "Peer element did not have a 'sink' pad");
fail_unless (peerpad == sinkpad,
filesrc = gst_bin_get_by_name (GST_BIN (bin), "my_filesrc");
g_object_set (G_OBJECT (filesrc), "location", argv[1], NULL);
+ gst_object_unref (filesrc);
/* start playing */
gst_element_set_state (bin, GST_STATE_PLAYING);