mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 10:04:23 +00:00
fix for element flag cleanups
This commit is contained in:
parent
2c55cc7bcb
commit
b4cdf008dd
2 changed files with 7 additions and 7 deletions
|
@ -525,7 +525,7 @@ gst_play_sink_init (GstPlaySink * playsink)
|
|||
GST_ELEMENT_CAST (playsink->stream_synchronizer));
|
||||
|
||||
g_static_rec_mutex_init (&playsink->lock);
|
||||
GST_OBJECT_FLAG_SET (playsink, GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_SET (playsink, GST_ELEMENT_FLAG_SINK);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -932,7 +932,7 @@ add_chain (GstPlayChain * chain, gboolean add)
|
|||
else {
|
||||
gst_bin_remove (GST_BIN_CAST (chain->playsink), chain->bin);
|
||||
/* we don't want to lose our sink status */
|
||||
GST_OBJECT_FLAG_SET (chain->playsink, GST_ELEMENT_IS_SINK);
|
||||
GST_OBJECT_FLAG_SET (chain->playsink, GST_ELEMENT_FLAG_SINK);
|
||||
}
|
||||
|
||||
chain->added = add;
|
||||
|
@ -968,7 +968,7 @@ element_is_sink (GstElement * element)
|
|||
gboolean is_sink;
|
||||
|
||||
GST_OBJECT_LOCK (element);
|
||||
is_sink = GST_OBJECT_FLAG_IS_SET (element, GST_ELEMENT_IS_SINK);
|
||||
is_sink = GST_OBJECT_FLAG_IS_SET (element, GST_ELEMENT_FLAG_SINK);
|
||||
GST_OBJECT_UNLOCK (element);
|
||||
|
||||
GST_DEBUG_OBJECT (element, "is a sink: %s", (is_sink) ? "yes" : "no");
|
||||
|
|
|
@ -674,7 +674,7 @@ gst_uri_decode_bin_init (GstURIDecodeBin * dec)
|
|||
dec->expose_allstreams = DEFAULT_EXPOSE_ALL_STREAMS;
|
||||
dec->ring_buffer_max_size = DEFAULT_RING_BUFFER_MAX_SIZE;
|
||||
|
||||
GST_OBJECT_FLAG_SET (dec, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (dec, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1542,7 +1542,7 @@ remove_decoders (GstURIDecodeBin * bin, gboolean force)
|
|||
}
|
||||
|
||||
/* Don't loose the SOURCE flag */
|
||||
GST_OBJECT_FLAG_SET (bin, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (bin, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1891,7 +1891,7 @@ could_not_link:
|
|||
(NULL), ("Can't link source to typefind element"));
|
||||
gst_bin_remove (GST_BIN_CAST (decoder), typefind);
|
||||
/* Don't loose the SOURCE flag */
|
||||
GST_OBJECT_FLAG_SET (decoder, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (decoder, GST_ELEMENT_FLAG_SOURCE);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
@ -1940,7 +1940,7 @@ remove_source (GstURIDecodeBin * bin)
|
|||
bin->streams = NULL;
|
||||
}
|
||||
/* Don't loose the SOURCE flag */
|
||||
GST_OBJECT_FLAG_SET (bin, GST_ELEMENT_IS_SOURCE);
|
||||
GST_OBJECT_FLAG_SET (bin, GST_ELEMENT_FLAG_SOURCE);
|
||||
}
|
||||
|
||||
/* is called when a dynamic source element created a new pad. */
|
||||
|
|
Loading…
Reference in a new issue