mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
tests/examples/playlist.c: add transitions to playlist example
This commit is contained in:
parent
deddfe2df5
commit
bcf734a419
1 changed files with 13 additions and 0 deletions
|
@ -166,6 +166,19 @@ create_timeline (int nbargs, gchar ** argv)
|
||||||
arg0, GST_TIME_ARGS (duration));
|
arg0, GST_TIME_ARGS (duration));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if (!g_strcmp0 ("+transition", source)) {
|
||||||
|
src = GES_TIMELINE_SOURCE (ges_timeline_transition_new_for_nick (arg0));
|
||||||
|
|
||||||
|
if (!src)
|
||||||
|
g_error ("invalid transition type\n");
|
||||||
|
|
||||||
|
g_object_set (G_OBJECT (src), "duration", duration, NULL);
|
||||||
|
|
||||||
|
g_print ("Adding <transition:%s> duration %" GST_TIME_FORMAT "\n",
|
||||||
|
arg0, GST_TIME_ARGS (duration));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
gchar *uri = g_strdup_printf ("file://%s", source);
|
gchar *uri = g_strdup_printf ("file://%s", source);
|
||||||
guint64 inpoint = atoi (argv[i * 3 + 1]) * GST_SECOND;
|
guint64 inpoint = atoi (argv[i * 3 + 1]) * GST_SECOND;
|
||||||
|
|
Loading…
Reference in a new issue