videosink: ensure the debug category is always initialized
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 16 May 2016 10:52:50 +0000 (12:52 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 18 May 2016 18:44:52 +0000 (19:44 +0100)
commit8fc42f12f04f8c487eda91adb87e04f200774d86
treedf0ec89af5d1950278820f37ceef22d49446083b
parent92343b6f208330d2161a049d1a41d82bbb8f0885
videosink: ensure the debug category is always initialized

gst_video_sink_center_rect() can be called without a GstVideoSink
having been instantiated so we can't relly on the video sink
class_init function to init the category.

Fix a warning when running:
GST_CHECKS=test_video_center_rect GST_DEBUG=6 G_DEBUG=fatal_warnings make libs/video.check-norepeat

https://bugzilla.gnome.org/show_bug.cgi?id=766510
gst-libs/gst/video/gstvideosink.c