mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
formatter: Add a timeline protected field
This commit is contained in:
parent
963cce240c
commit
76c7ba5264
2 changed files with 6 additions and 1 deletions
|
@ -341,6 +341,7 @@ ges_formatter_load (GESFormatter * formatter, GESTimeline * timeline)
|
|||
{
|
||||
GESFormatterClass *klass;
|
||||
|
||||
formatter->timeline = timeline;
|
||||
klass = GES_FORMATTER_GET_CLASS (formatter);
|
||||
|
||||
if (klass->load)
|
||||
|
@ -411,6 +412,7 @@ ges_formatter_load_from_uri (GESFormatter * formatter, GESTimeline * timeline,
|
|||
G_CALLBACK (discovery_error_cb), formatter);
|
||||
if (klass->load_from_uri) {
|
||||
ges_timeline_enable_update (timeline, FALSE);
|
||||
formatter->timeline = timeline;
|
||||
ret = klass->load_from_uri (formatter, timeline, uri);
|
||||
ges_timeline_enable_update (timeline, TRUE);
|
||||
}
|
||||
|
|
|
@ -55,8 +55,11 @@ struct _GESFormatter {
|
|||
/*< private >*/
|
||||
GESFormatterPrivate *priv;
|
||||
|
||||
/*< protected >*/
|
||||
GESTimeline *timeline;
|
||||
|
||||
/* Padding for API extension */
|
||||
gpointer _ges_reserved[GES_PADDING];
|
||||
gpointer _ges_reserved[GES_PADDING - 1];
|
||||
};
|
||||
|
||||
typedef gboolean (*GESFormatterCanLoadURIMethod) (const gchar * uri);
|
||||
|
|
Loading…
Reference in a new issue