elementfactory: make sure gstreamer has been initialized when creating elements
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 16 Sep 2010 18:27:57 +0000 (19:27 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 16 Sep 2010 18:40:15 +0000 (19:40 +0100)
commit80ddde400a6ad66f44ccbbbaacde2ab8c93ee792
tree47c4c8f949bb0e248b7cf74903f280e86af625e3
parent34abe02458b7882e27c309217b03952b2cda0b93
elementfactory: make sure gstreamer has been initialized when creating elements

Add gst_is_initialized() guard to gst_element_factory_make(), so
people who forgot to call gst_init() get a useful warning for what
seems to be a common enough mistake.
gst/gstelementfactory.c