playsinkconvertbin: Don't add identity multiple times

This commit is contained in:
Sebastian Dröge 2011-11-03 10:07:27 +01:00
parent 7eb8a9aaf6
commit b29a3d3cff

View file

@ -129,6 +129,9 @@ gst_play_sink_convert_bin_add_conversion_element_factory (GstPlaySinkConvertBin
void
gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self)
{
if (self->identity)
return;
self->identity = gst_element_factory_make ("identity", "identity");
if (self->identity == NULL) {
gst_play_sink_convert_bin_post_missing_element_message (self, "identity");