mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
ges: Handle supported formats in TimelineStandardTransition
This commit is contained in:
parent
0e11ec4137
commit
8f405d6a4d
1 changed files with 8 additions and 3 deletions
|
@ -192,16 +192,21 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
|
|||
GESTimelineStandardTransition *transition =
|
||||
(GESTimelineStandardTransition *) obj;
|
||||
GESTrackObject *res;
|
||||
GESTrackType supportedformats;
|
||||
|
||||
GST_DEBUG ("Creating a GESTrackTransition");
|
||||
|
||||
if (track->type == GES_TRACK_TYPE_VIDEO) {
|
||||
supportedformats = ges_timeline_object_get_supported_formats (obj);
|
||||
if (track->type == GES_TRACK_TYPE_VIDEO &&
|
||||
(supportedformats == GES_TRACK_TYPE_UNKNOWN ||
|
||||
supportedformats & GES_TRACK_TYPE_VIDEO)) {
|
||||
res = GES_TRACK_OBJECT (ges_track_video_transition_new ());
|
||||
ges_track_video_transition_set_transition_type ((GESTrackVideoTransition *)
|
||||
res, transition->vtype);
|
||||
}
|
||||
|
||||
else if (track->type == GES_TRACK_TYPE_AUDIO) {
|
||||
} else if (track->type == GES_TRACK_TYPE_AUDIO &&
|
||||
(supportedformats == GES_TRACK_TYPE_UNKNOWN ||
|
||||
supportedformats & GES_TRACK_TYPE_AUDIO)) {
|
||||
res = GES_TRACK_OBJECT (ges_track_audio_transition_new ());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue