mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
eglglessink: For RPi, initialize bcm_host in plugin_init()
This commit is contained in:
parent
b206464599
commit
3876a7f9e6
1 changed files with 5 additions and 5 deletions
|
@ -130,7 +130,6 @@
|
|||
|
||||
#ifdef USE_EGL_RPI
|
||||
#include <bcm_host.h>
|
||||
#include <GLES/gl.h>
|
||||
#endif
|
||||
|
||||
#include "video_platform_wrapper.h"
|
||||
|
@ -1540,10 +1539,6 @@ static gboolean
|
|||
gst_eglglessink_init_egl_display (GstEglGlesSink * eglglessink)
|
||||
{
|
||||
GST_DEBUG_OBJECT (eglglessink, "Enter EGL initial configuration");
|
||||
#ifdef USE_EGL_RPI
|
||||
GST_DEBUG_OBJECT (eglglessink, "Initialize BCM host");
|
||||
bcm_host_init ();
|
||||
#endif
|
||||
|
||||
#ifndef USE_EGL_RPI
|
||||
eglglessink->eglglesctx.display = eglGetDisplay (EGL_DEFAULT_DISPLAY);
|
||||
|
@ -3755,6 +3750,11 @@ eglglessink_plugin_init (GstPlugin * plugin)
|
|||
GST_DEBUG_CATEGORY_INIT (gst_eglglessink_debug, "eglglessink",
|
||||
0, "Simple EGL/GLES Sink");
|
||||
|
||||
#ifdef USE_EGL_RPI
|
||||
GST_DEBUG ("Initialize BCM host");
|
||||
bcm_host_init ();
|
||||
#endif
|
||||
|
||||
return gst_element_register (plugin, "eglglessink", GST_RANK_PRIMARY,
|
||||
GST_TYPE_EGLGLESSINK);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue