mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
add routines to set track object pattern
This commit is contained in:
parent
5e39898c1a
commit
2a351841cc
2 changed files with 14 additions and 0 deletions
|
@ -108,6 +108,16 @@ ges_track_vbg_src_create_element (GESTrackBackgroundSource * self)
|
|||
return gst_element_factory_make ("videotestsrc", NULL);
|
||||
}
|
||||
|
||||
void
|
||||
ges_track_video_background_source_set_pattern (GESTrackVideoBackgroundSource
|
||||
* self, GESTrackVideoBgSrcPattern pattern)
|
||||
{
|
||||
GstElement *element;
|
||||
element = GES_TRACK_BACKGROUND_SOURCE (self)->element;
|
||||
if (element)
|
||||
g_object_set (element, "pattern", (gint) pattern, NULL);
|
||||
}
|
||||
|
||||
GESTrackVideoBackgroundSource *
|
||||
ges_track_video_background_source_new (void)
|
||||
{
|
||||
|
|
|
@ -89,6 +89,10 @@ struct _GESTrackVideoBackgroundSourceClass {
|
|||
GType ges_track_vbg_src_get_type (void);
|
||||
|
||||
GESTrackVideoBackgroundSource* ges_track_video_background_source_new (void);
|
||||
void
|
||||
|
||||
ges_track_video_background_source_set_pattern(GESTrackVideoBackgroundSource *,
|
||||
GESTrackVideoBgSrcPattern);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue