Commit 2ee1caff authored by Guido Gunther's avatar Guido Gunther
Browse files

livi-gst-sink: Make code match file name

This make sure we don't have `gtk_` in backtraces although it's
internal code.

Code was originally taken from GTK4. It's license is preserved.
parent 1a357ce0
......@@ -117,12 +117,12 @@ gtk_gst_paintable_video_renderer_create_video_sink (GstPlayerVideoRenderer *rend
GstElement *sink, *glsinkbin;
GdkGLContext *ctx;
sink = g_object_new (GTK_TYPE_GST_SINK,
sink = g_object_new (LIVI_TYPE_GST_SINK,
"paintable", self,
"gl-context", self->context,
NULL);
g_object_get (GTK_GST_SINK (sink), "gl-context", &ctx, NULL);
g_object_get (LIVI_GST_SINK (sink), "gl-context", &ctx, NULL);
/* GL rendering won't work otherwise */
g_assert (self->context != NULL && ctx != NULL);
......
This diff is collapsed.
/*
* GStreamer
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
* Copyright 2021 Purism SPC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
......@@ -30,8 +16,8 @@
G_BEGIN_DECLS
#define GTK_TYPE_GST_SINK (gtk_gst_sink_get_type())
#define LIVI_TYPE_GST_SINK (livi_gst_sink_get_type ())
G_DECLARE_FINAL_TYPE (GtkGstSink, gtk_gst_sink, GTK, GST_SINK, GstVideoSink)
G_DECLARE_FINAL_TYPE (LiviGstSink, livi_gst_sink, LIVI, GST_SINK, GstVideoSink)
G_END_DECLS
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment