mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
ges-track-transition.c: add controller and control-source members
This commit is contained in:
parent
e3549deec2
commit
6728e4dd8d
2 changed files with 16 additions and 3 deletions
|
@ -47,6 +47,13 @@ ges_track_transition_set_property (GObject * object, guint property_id,
|
||||||
static void
|
static void
|
||||||
ges_track_transition_dispose (GObject * object)
|
ges_track_transition_dispose (GObject * object)
|
||||||
{
|
{
|
||||||
|
GESTrackTransition *self = GES_TRACK_TRANSITION (object);
|
||||||
|
if (self->controller) {
|
||||||
|
g_object_unref (self->controller);
|
||||||
|
self->controller = NULL;
|
||||||
|
self->control_source = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (ges_track_transition_parent_class)->dispose (object);
|
G_OBJECT_CLASS (ges_track_transition_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +140,8 @@ ges_track_transition_class_init (GESTrackTransitionClass * klass)
|
||||||
static void
|
static void
|
||||||
ges_track_transition_init (GESTrackTransition * self)
|
ges_track_transition_init (GESTrackTransition * self)
|
||||||
{
|
{
|
||||||
|
self->controller = NULL;
|
||||||
|
self->control_source = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
GESTrackTransition *
|
GESTrackTransition *
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#define _GES_TRACK_TRANSITION
|
#define _GES_TRACK_TRANSITION
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
#include <gst/controller/gstcontroller.h>
|
||||||
|
#include <gst/controller/gstcontrolsource.h>
|
||||||
#include <ges/ges-types.h>
|
#include <ges/ges-types.h>
|
||||||
#include <ges/ges-track-object.h>
|
#include <ges/ges-track-object.h>
|
||||||
|
|
||||||
|
@ -46,9 +48,11 @@ G_BEGIN_DECLS
|
||||||
#define GES_TRACK_TRANSITION_GET_CLASS(obj) \
|
#define GES_TRACK_TRANSITION_GET_CLASS(obj) \
|
||||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_TRANSITION,\
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), GES_TYPE_TRACK_TRANSITION,\
|
||||||
GESTrackTransitionClass)
|
GESTrackTransitionClass)
|
||||||
|
struct _GESTrackTransition
|
||||||
struct _GESTrackTransition {
|
{
|
||||||
GESTrackObject parent;
|
GESTrackObject parent;
|
||||||
|
GstController *controller;
|
||||||
|
GstControlSource *control_source;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GESTrackTransitionClass {
|
struct _GESTrackTransitionClass {
|
||||||
|
|
Loading…
Reference in a new issue