mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
GESTrackVideoBackgroundSource inherits directly from track object
This commit is contained in:
parent
71df7618e0
commit
891826fdec
2 changed files with 10 additions and 11 deletions
|
@ -28,7 +28,7 @@
|
||||||
#include "ges-track-video-background-source.h"
|
#include "ges-track-video-background-source.h"
|
||||||
|
|
||||||
G_DEFINE_TYPE (GESTrackVideoBackgroundSource, ges_track_vbg_src,
|
G_DEFINE_TYPE (GESTrackVideoBackgroundSource, ges_track_vbg_src,
|
||||||
GES_TYPE_TRACK_BACKGROUND_SOURCE);
|
GES_TYPE_TRACK_SOURCE);
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -45,24 +45,23 @@ static void ges_track_vbg_src_get_property (GObject * object, guint
|
||||||
static void ges_track_vbg_src_set_property (GObject * object, guint
|
static void ges_track_vbg_src_set_property (GObject * object, guint
|
||||||
property_id, const GValue * value, GParamSpec * pspec);
|
property_id, const GValue * value, GParamSpec * pspec);
|
||||||
|
|
||||||
static GstElement *ges_track_vbg_src_create_element (GESTrackBackgroundSource
|
static GstElement *ges_track_vbg_src_create_element (GESTrackSource * self);
|
||||||
* self);
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
ges_track_vbg_src_class_init (GESTrackVideoBackgroundSourceClass * klass)
|
ges_track_vbg_src_class_init (GESTrackVideoBackgroundSourceClass * klass)
|
||||||
{
|
{
|
||||||
GObjectClass *object_class;
|
GObjectClass *object_class;
|
||||||
GESTrackBackgroundSourceClass *bg_class;
|
GESTrackSourceClass *track_source_class;
|
||||||
|
|
||||||
object_class = G_OBJECT_CLASS (klass);
|
object_class = G_OBJECT_CLASS (klass);
|
||||||
bg_class = GES_TRACK_BACKGROUND_SOURCE_CLASS (klass);
|
track_source_class = GES_TRACK_SOURCE_CLASS (klass);
|
||||||
|
|
||||||
object_class->get_property = ges_track_vbg_src_get_property;
|
object_class->get_property = ges_track_vbg_src_get_property;
|
||||||
object_class->set_property = ges_track_vbg_src_set_property;
|
object_class->set_property = ges_track_vbg_src_set_property;
|
||||||
object_class->dispose = ges_track_vbg_src_dispose;
|
object_class->dispose = ges_track_vbg_src_dispose;
|
||||||
object_class->finalize = ges_track_vbg_src_finalize;
|
object_class->finalize = ges_track_vbg_src_finalize;
|
||||||
|
|
||||||
bg_class->create_element = ges_track_vbg_src_create_element;
|
track_source_class->create_element = ges_track_vbg_src_create_element;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -104,7 +103,7 @@ ges_track_vbg_src_set_property (GObject * object,
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstElement *
|
static GstElement *
|
||||||
ges_track_vbg_src_create_element (GESTrackBackgroundSource * self)
|
ges_track_vbg_src_create_element (GESTrackSource * self)
|
||||||
{
|
{
|
||||||
GstElement *ret;
|
GstElement *ret;
|
||||||
gint pattern;
|
gint pattern;
|
||||||
|
@ -121,7 +120,7 @@ ges_track_video_background_source_set_pattern (GESTrackVideoBackgroundSource
|
||||||
* self, GESTrackVideoBgSrcPattern pattern)
|
* self, GESTrackVideoBgSrcPattern pattern)
|
||||||
{
|
{
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
element = GES_TRACK_BACKGROUND_SOURCE (self)->element;
|
element = GES_TRACK_SOURCE (self)->element;
|
||||||
self->pattern = pattern;
|
self->pattern = pattern;
|
||||||
if (element)
|
if (element)
|
||||||
g_object_set (element, "pattern", (gint) pattern, NULL);
|
g_object_set (element, "pattern", (gint) pattern, NULL);
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <ges/ges-types.h>
|
#include <ges/ges-types.h>
|
||||||
#include <ges/ges-track-background-source.h>
|
#include <ges/ges-track-source.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ typedef enum {
|
||||||
* @parent: parent
|
* @parent: parent
|
||||||
*/
|
*/
|
||||||
struct _GESTrackVideoBackgroundSource {
|
struct _GESTrackVideoBackgroundSource {
|
||||||
GESTrackBackgroundSource parent;
|
GESTrackSource parent;
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
GESTrackVideoBgSrcPattern pattern;
|
GESTrackVideoBgSrcPattern pattern;
|
||||||
|
@ -98,7 +98,7 @@ struct _GESTrackVideoBackgroundSource {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct _GESTrackVideoBackgroundSourceClass {
|
struct _GESTrackVideoBackgroundSourceClass {
|
||||||
GESTrackBackgroundSourceClass parent_class;
|
GESTrackSourceClass parent_class;
|
||||||
|
|
||||||
/* <public> */
|
/* <public> */
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue