mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gst/gstbin.c: Use gst_element_post_message() instead.
Original commit message from CVS: * gst/gstbin.c: (bin_bus_handler): Use gst_element_post_message() instead.
This commit is contained in:
parent
46cc9bc152
commit
3d373927b1
2 changed files with 9 additions and 17 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-08-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/gstbin.c: (bin_bus_handler):
|
||||
Use gst_element_post_message() instead.
|
||||
|
||||
2005-08-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/base/gstadapter.h:
|
||||
|
|
21
gst/gstbin.c
21
gst/gstbin.c
|
@ -1460,7 +1460,7 @@ bin_bus_handler (GstBus * bus, GstMessage * message, GstBin * bin)
|
|||
|
||||
if (is_eos (bin)) {
|
||||
GST_DEBUG_OBJECT (bin, "all sinks posted EOS");
|
||||
gst_bus_post (GST_ELEMENT (bin)->bus,
|
||||
gst_element_post_message (GST_ELEMENT (bin),
|
||||
gst_message_new_eos (GST_OBJECT (bin)));
|
||||
}
|
||||
|
||||
|
@ -1468,24 +1468,11 @@ bin_bus_handler (GstBus * bus, GstMessage * message, GstBin * bin)
|
|||
gst_message_unref (message);
|
||||
break;
|
||||
}
|
||||
default:{
|
||||
GstBus *bus;
|
||||
|
||||
default:
|
||||
/* Send all other messages upward */
|
||||
GST_LOCK (bin);
|
||||
if (!(bus = GST_ELEMENT (bin)->bus)) {
|
||||
GST_DEBUG_OBJECT (bin, "dropping message because no parent bus");
|
||||
GST_UNLOCK (bin);
|
||||
} else {
|
||||
gst_object_ref (bus);
|
||||
GST_UNLOCK (bin);
|
||||
|
||||
GST_DEBUG_OBJECT (bin, "posting message upward");
|
||||
gst_bus_post (GST_ELEMENT (bin)->bus, message);
|
||||
gst_object_unref (bus);
|
||||
}
|
||||
GST_DEBUG_OBJECT (bin, "posting message upward");
|
||||
gst_element_post_message (GST_ELEMENT (bin), message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return GST_BUS_DROP;
|
||||
|
|
Loading…
Reference in a new issue