mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
don't get src for all messages; only for eos
Original commit message from CVS: don't get src for all messages; only for eos
This commit is contained in:
parent
fe31300609
commit
3f768e81e7
1 changed files with 4 additions and 4 deletions
|
@ -1449,14 +1449,14 @@ gst_bin_send_event (GstElement * element, GstEvent * event)
|
||||||
static GstBusSyncReply
|
static GstBusSyncReply
|
||||||
bin_bus_handler (GstBus * bus, GstMessage * message, GstBin * bin)
|
bin_bus_handler (GstBus * bus, GstMessage * message, GstBin * bin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (bin, "[msg %p] handling child message of type %d from %s",
|
GST_DEBUG_OBJECT (bin, "[msg %p] handling child message of type %d",
|
||||||
message, GST_MESSAGE_TYPE (message),
|
message, GST_MESSAGE_TYPE (message));
|
||||||
gst_object_get_name (GST_MESSAGE_SRC (message)));
|
|
||||||
/* we don't want messages from the streaming thread while we're doing the
|
/* we don't want messages from the streaming thread while we're doing the
|
||||||
* state change. We do want them from the state change functions. */
|
* state change. We do want them from the state change functions. */
|
||||||
switch (GST_MESSAGE_TYPE (message)) {
|
switch (GST_MESSAGE_TYPE (message)) {
|
||||||
case GST_MESSAGE_EOS:
|
case GST_MESSAGE_EOS:
|
||||||
GST_DEBUG_OBJECT (bin, "got EOS message");
|
GST_DEBUG_OBJECT (bin, "got EOS message from %s",
|
||||||
|
gst_object_get_name (GST_MESSAGE_SRC (message)));
|
||||||
|
|
||||||
GST_LOCK (bin->child_bus);
|
GST_LOCK (bin->child_bus);
|
||||||
bin->eosed = g_list_prepend (bin->eosed, GST_MESSAGE_SRC (message));
|
bin->eosed = g_list_prepend (bin->eosed, GST_MESSAGE_SRC (message));
|
||||||
|
|
Loading…
Reference in a new issue