playsinkconvertbin: Don't add identity multiple times
This commit is contained in:
parent
7eb8a9aaf6
commit
b29a3d3cff
@ -129,6 +129,9 @@ gst_play_sink_convert_bin_add_conversion_element_factory (GstPlaySinkConvertBin
|
|||||||
void
|
void
|
||||||
gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self)
|
gst_play_sink_convert_bin_add_identity (GstPlaySinkConvertBin * self)
|
||||||
{
|
{
|
||||||
|
if (self->identity)
|
||||||
|
return;
|
||||||
|
|
||||||
self->identity = gst_element_factory_make ("identity", "identity");
|
self->identity = gst_element_factory_make ("identity", "identity");
|
||||||
if (self->identity == NULL) {
|
if (self->identity == NULL) {
|
||||||
gst_play_sink_convert_bin_post_missing_element_message (self, "identity");
|
gst_play_sink_convert_bin_post_missing_element_message (self, "identity");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user