mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
ges: Calm logging when not created TrackObject on purpose
This commit is contained in:
parent
979b9ac0b6
commit
ad5bc85516
2 changed files with 26 additions and 16 deletions
|
@ -191,29 +191,37 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
|
|||
{
|
||||
GESTimelineStandardTransition *transition =
|
||||
(GESTimelineStandardTransition *) obj;
|
||||
GESTrackObject *res;
|
||||
GESTrackObject *res = NULL;
|
||||
GESTrackType supportedformats;
|
||||
|
||||
GST_DEBUG ("Creating a GESTrackTransition");
|
||||
|
||||
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);
|
||||
if (track->type == GES_TRACK_TYPE_VIDEO) {
|
||||
if (supportedformats == GES_TRACK_TYPE_UNKNOWN ||
|
||||
supportedformats & GES_TRACK_TYPE_VIDEO) {
|
||||
GESTrackVideoTransition *trans;
|
||||
|
||||
} 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 ());
|
||||
}
|
||||
trans = ges_track_video_transition_new ();
|
||||
ges_track_video_transition_set_transition_type (trans, transition->vtype);
|
||||
|
||||
else {
|
||||
res = GES_TRACK_OBJECT (trans);
|
||||
} else {
|
||||
GST_DEBUG ("Not creating transition as video track not on"
|
||||
" supportedformats");
|
||||
}
|
||||
|
||||
} else if (track->type == GES_TRACK_TYPE_AUDIO) {
|
||||
|
||||
if (supportedformats == GES_TRACK_TYPE_UNKNOWN ||
|
||||
supportedformats & GES_TRACK_TYPE_AUDIO)
|
||||
res = GES_TRACK_OBJECT (ges_track_audio_transition_new ());
|
||||
else
|
||||
GST_DEBUG ("Not creating transition as audio track"
|
||||
" not on supportedformats");
|
||||
|
||||
} else
|
||||
GST_WARNING ("Transitions don't handle this track type");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -329,7 +329,9 @@ static void
|
|||
add_object_to_track (GESTimelineObject * object, GESTrack * track)
|
||||
{
|
||||
if (!ges_timeline_object_create_track_objects (object, track)) {
|
||||
GST_WARNING ("error creating track objects");
|
||||
if ((track->type & ges_timeline_object_get_supported_formats (object))) {
|
||||
GST_WARNING ("Error creating track objects");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue