mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
examples: Remove unused code
This commit is contained in:
parent
bf2c2b8f7a
commit
c8d77f2360
2 changed files with 0 additions and 68 deletions
|
@ -32,8 +32,6 @@ GESTimelineObject *make_source (char *path, guint64 start, guint64 duration,
|
|||
GESTimelineObject *make_overlay (char *text, guint64 start, guint64 duration,
|
||||
gint priority);
|
||||
|
||||
gboolean print_transition_data (GESTimelineObject * tr);
|
||||
|
||||
GESTimelinePipeline *make_timeline (char *path, float duration, char *text);
|
||||
|
||||
GESTimelineObject *
|
||||
|
@ -69,38 +67,6 @@ make_overlay (char *text, guint64 start, guint64 duration, gint priority)
|
|||
return ret;
|
||||
}
|
||||
|
||||
gboolean
|
||||
print_transition_data (GESTimelineObject * tr)
|
||||
{
|
||||
GESTrackObject *trackobj;
|
||||
GstElement *gnlobj;
|
||||
guint64 start, duration;
|
||||
gint priority;
|
||||
char *name;
|
||||
GList *trackobjects, *tmp;
|
||||
|
||||
if (!tr)
|
||||
return FALSE;
|
||||
|
||||
trackobjects = ges_timeline_object_get_track_objects (tr);
|
||||
trackobj = GES_TRACK_OBJECT (trackobjects->data);
|
||||
gnlobj = ges_track_object_get_gnlobject (trackobj);
|
||||
|
||||
g_object_get (gnlobj, "start", &start, "duration", &duration,
|
||||
"priority", &priority, "name", &name, NULL);
|
||||
g_print ("gnlobject for %s: %f %f %d\n", name,
|
||||
((gfloat) start) / GST_SECOND,
|
||||
((gfloat) duration) / GST_SECOND, priority);
|
||||
|
||||
for (tmp = trackobjects; tmp; tmp = tmp->next) {
|
||||
g_object_unref (GES_TRACK_OBJECT (tmp->data));
|
||||
}
|
||||
|
||||
g_list_free (trackobjects);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GESTimelinePipeline *
|
||||
make_timeline (char *path, float duration, char *text)
|
||||
{
|
||||
|
|
|
@ -29,8 +29,6 @@ typedef struct
|
|||
GESTimelineObject *make_source (char *path, guint64 start, guint64 duration,
|
||||
gint priority, gchar * text);
|
||||
|
||||
gboolean print_transition_data (GESTimelineObject * tr);
|
||||
|
||||
GESTimelinePipeline *make_timeline (char *path, float duration, char *text);
|
||||
|
||||
GESTimelineObject *
|
||||
|
@ -53,38 +51,6 @@ make_source (char *path, guint64 start, guint64 duration, gint priority,
|
|||
return ret;
|
||||
}
|
||||
|
||||
gboolean
|
||||
print_transition_data (GESTimelineObject * tr)
|
||||
{
|
||||
GESTrackObject *trackobj;
|
||||
GstElement *gnlobj;
|
||||
guint64 start, duration;
|
||||
gint priority;
|
||||
char *name;
|
||||
GList *trackobjects, *tmp;
|
||||
|
||||
if (!tr)
|
||||
return FALSE;
|
||||
|
||||
trackobjects = ges_timeline_object_get_track_objects (tr);
|
||||
trackobj = GES_TRACK_OBJECT (trackobjects->data);
|
||||
gnlobj = ges_track_object_get_gnlobject (trackobj);
|
||||
|
||||
g_object_get (gnlobj, "start", &start, "duration", &duration,
|
||||
"priority", &priority, "name", &name, NULL);
|
||||
g_print ("gnlobject for %s: %f %f %d\n", name,
|
||||
((gfloat) start) / GST_SECOND,
|
||||
((gfloat) duration) / GST_SECOND, priority);
|
||||
|
||||
for (tmp = trackobjects; tmp; tmp = tmp->next) {
|
||||
g_object_unref (GES_TRACK_OBJECT (tmp->data));
|
||||
}
|
||||
|
||||
g_list_free (trackobjects);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GESTimelinePipeline *
|
||||
make_timeline (char *path, float duration, char *text)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue