Sink: merge gstsink into single class

Clapper only uses single video sink. No need for subclassing it.
This commit is contained in:
Rafał Dzięgiel
2021-03-05 21:06:03 +01:00
parent 93549a67af
commit 95c3845398
6 changed files with 246 additions and 420 deletions

View File

@@ -30,7 +30,7 @@
#endif
#include "gstclapper-gtk4-plugin.h"
#include "gtk4/gstgtkglsink.h"
#include "gtk4/gstgtkbasesink.h"
enum
{
@@ -78,7 +78,7 @@ gst_clapper_gtk4_plugin_constructed (GObject * object)
GstClapperGtk4Plugin *self = GST_CLAPPER_GTK4_PLUGIN (object);
if (!self->video_sink)
self->video_sink = g_object_new (GST_TYPE_GTK_GL_SINK, NULL);
self->video_sink = g_object_new (GST_TYPE_GTK_BASE_SINK, NULL);
gst_object_ref_sink (self->video_sink);