mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-02 18:23:56 +00:00
playsinkconvertbin: Don't add identity multiple times
This commit is contained in:
parent
7eb8a9aaf6
commit
b29a3d3cff
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue