projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a041d88
)
bus: Add guards against invalid arguments to set_flushing() and poll()
author
Sebastian Dröge
<sebastian@centricular.com>
Fri, 27 Mar 2015 09:15:16 +0000
(10:15 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Fri, 27 Mar 2015 09:15:45 +0000
(10:15 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=746871
gst/gstbus.c
patch
|
blob
|
history
diff --git
a/gst/gstbus.c
b/gst/gstbus.c
index
7865079
..
fbe2464
100644
(file)
--- a/
gst/gstbus.c
+++ b/
gst/gstbus.c
@@
-448,6
+448,8
@@
gst_bus_set_flushing (GstBus * bus, gboolean flushing)
GstMessage *message;
GList *message_list = NULL;
+ g_return_if_fail (GST_IS_BUS (bus));
+
GST_OBJECT_LOCK (bus);
if (flushing) {
@@
-1122,6
+1124,8
@@
gst_bus_poll (GstBus * bus, GstMessageType events, GstClockTime timeout)
GstMessage *ret;
gulong id;
+ g_return_val_if_fail (GST_IS_BUS (bus), NULL);
+
poll_data = g_slice_new (GstBusPollData);
poll_data->source_running = TRUE;
poll_data->loop = g_main_loop_new (NULL, FALSE);