mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
Misc debug message enhancements
This commit is contained in:
parent
92a67092d5
commit
8888a3a698
4 changed files with 17 additions and 11 deletions
|
@ -935,11 +935,10 @@ ges_timeline_layer_add_object (GESTimelineLayer * layer,
|
||||||
GESTimelineObject * object)
|
GESTimelineObject * object)
|
||||||
{
|
{
|
||||||
GESAsset *asset;
|
GESAsset *asset;
|
||||||
|
GESTimelineLayerPrivate *priv;
|
||||||
GESTimelineLayer *current_layer;
|
GESTimelineLayer *current_layer;
|
||||||
guint32 maxprio, minprio, prio;
|
guint32 maxprio, minprio, prio;
|
||||||
|
|
||||||
GESTimelineLayerPrivate *priv;
|
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_LAYER (layer), FALSE);
|
g_return_val_if_fail (GES_IS_TIMELINE_LAYER (layer), FALSE);
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
||||||
|
|
||||||
|
@ -1047,8 +1046,12 @@ ges_timeline_layer_add_asset (GESTimelineLayer * layer,
|
||||||
g_return_val_if_fail (g_type_is_a (ges_asset_get_extractable_type
|
g_return_val_if_fail (g_type_is_a (ges_asset_get_extractable_type
|
||||||
(asset), GES_TYPE_TIMELINE_OBJECT), NULL);
|
(asset), GES_TYPE_TIMELINE_OBJECT), NULL);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (layer, "Adding asset %s with: start: %" GST_TIME_FORMAT
|
||||||
|
" inpoint: %" GST_TIME_FORMAT " duration: %" GST_TIME_FORMAT " rate %d"
|
||||||
|
" track types: %d (%s)", ges_asset_get_id (asset), GST_TIME_ARGS (start),
|
||||||
|
GST_TIME_ARGS (inpoint), GST_TIME_ARGS (duration), track_types,
|
||||||
|
ges_track_type_name (track_types));
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (layer, "Adding asset: %s", ges_asset_get_id (asset));
|
|
||||||
tlobj = GES_TIMELINE_OBJECT (ges_asset_extract (asset, NULL));
|
tlobj = GES_TIMELINE_OBJECT (ges_asset_extract (asset, NULL));
|
||||||
ges_timeline_object_set_start (tlobj, start);
|
ges_timeline_object_set_start (tlobj, start);
|
||||||
ges_timeline_object_set_inpoint (tlobj, inpoint);
|
ges_timeline_object_set_inpoint (tlobj, inpoint);
|
||||||
|
|
|
@ -799,8 +799,9 @@ ges_timeline_object_set_start_internal (GESTimelineObject * object,
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
||||||
|
|
||||||
GST_DEBUG ("object:%p, start:%" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (object, "current start: %" GST_TIME_FORMAT,
|
||||||
object, GST_TIME_ARGS (start));
|
" new start: %" GST_TIME_FORMAT, GST_TIME_ARGS (start),
|
||||||
|
GST_TIME_ARGS (object->start));
|
||||||
|
|
||||||
/* If the class has snapping enabled and the object is in a timeline,
|
/* If the class has snapping enabled and the object is in a timeline,
|
||||||
* we snap */
|
* we snap */
|
||||||
|
@ -868,8 +869,9 @@ ges_timeline_object_set_inpoint_internal (GESTimelineObject * object,
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
||||||
|
|
||||||
GST_DEBUG ("object:%p, inpoint:%" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (object, "current inpoint: %" GST_TIME_FORMAT,
|
||||||
object, GST_TIME_ARGS (inpoint));
|
" new inpoint: %" GST_TIME_FORMAT, GST_TIME_ARGS (inpoint),
|
||||||
|
GST_TIME_ARGS (object->inpoint));
|
||||||
|
|
||||||
for (tmp = object->trackobjects; tmp; tmp = g_list_next (tmp)) {
|
for (tmp = object->trackobjects; tmp; tmp = g_list_next (tmp)) {
|
||||||
tr = (GESTrackObject *) tmp->data;
|
tr = (GESTrackObject *) tmp->data;
|
||||||
|
@ -910,8 +912,9 @@ ges_timeline_object_set_duration_internal (GESTimelineObject * object,
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
|
||||||
|
|
||||||
GST_DEBUG ("object:%p, duration:%" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (object, "current duration: %" GST_TIME_FORMAT,
|
||||||
object, GST_TIME_ARGS (duration));
|
" new duration: %" GST_TIME_FORMAT, GST_TIME_ARGS (duration),
|
||||||
|
GST_TIME_ARGS (object->duration));
|
||||||
|
|
||||||
if (priv->layer && GES_TIMELINE_OBJECT_GET_CLASS (object)->snaps)
|
if (priv->layer && GES_TIMELINE_OBJECT_GET_CLASS (object)->snaps)
|
||||||
timeline = ges_timeline_layer_get_timeline (object->priv->layer);
|
timeline = ges_timeline_layer_get_timeline (object->priv->layer);
|
||||||
|
|
|
@ -1221,7 +1221,7 @@ timeline_slide_object (GESTimeline * timeline, GESTrackObject * obj,
|
||||||
{
|
{
|
||||||
|
|
||||||
/* FIXME implement me! */
|
/* FIXME implement me! */
|
||||||
GST_WARNING ("Slide mode editing not implemented yet");
|
GST_FIXME_OBJECT (timeline, "Slide mode editing not implemented yet");
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1665,7 +1665,7 @@ default_list_children_properties (GESTrackObject * object, guint * n_properties)
|
||||||
prop_hash_not_set:
|
prop_hash_not_set:
|
||||||
{
|
{
|
||||||
*n_properties = 0;
|
*n_properties = 0;
|
||||||
GST_ERROR ("The child properties haven't been set on %p", object);
|
GST_DEBUG_OBJECT (object, "The child properties haven't been set on %p");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue