bus: Prevent gst_bus_add_watch_full_unlocked from a segfault if priv->poll == NULL
authorJames Stevenson <james@stev.org>
Thu, 25 Feb 2016 22:36:14 +0000 (22:36 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 26 Feb 2016 10:11:30 +0000 (12:11 +0200)
commit5048155f575856b0a5a07d95dac72b90bee9d7bb
treeb759be0af16dbd6f19310f69d133f2de6566cfe3
parent894c67e642c0f858b5b18097fa7c995bf3cc50c1
bus: Prevent gst_bus_add_watch_full_unlocked from a segfault if priv->poll == NULL

This happens if the process runs out of file descriptors. Better print
a critical warning instead of just crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=762702
gst/gstbus.c