pythonplugin: Clean up error handling a bit
authorSebastian Dröge <sebastian@centricular.com>
Mon, 16 Nov 2015 08:12:37 +0000 (10:12 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 16 Nov 2015 08:12:37 +0000 (10:12 +0200)
commit4097d3df3cc4c6c0495a805fe16a7d3d456903b0
treec55da429b894553504d1d7da7277923c36845d9a
parent9352c54ced630064779d38614e560309482a3829
pythonplugin: Clean up error handling a bit

Don't g_error() but only g_critical() when things go wrong and return FALSE.
g_error() would kill the application immediately.

Also check if we can actually get gi.repository.Gst before using it.
plugin/gstpythonplugin.c