Misc debug message enhancements

This commit is contained in:
Thibault Saunier 2013-01-10 12:41:13 -03:00
parent 92a67092d5
commit 8888a3a698
4 changed files with 17 additions and 11 deletions

View file

@ -935,11 +935,10 @@ ges_timeline_layer_add_object (GESTimelineLayer * layer,
GESTimelineObject * object)
{
GESAsset *asset;
GESTimelineLayerPrivate *priv;
GESTimelineLayer *current_layer;
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_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
(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));
ges_timeline_object_set_start (tlobj, start);
ges_timeline_object_set_inpoint (tlobj, inpoint);

View file

@ -799,8 +799,9 @@ ges_timeline_object_set_start_internal (GESTimelineObject * object,
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), FALSE);
GST_DEBUG ("object:%p, start:%" GST_TIME_FORMAT,
object, GST_TIME_ARGS (start));
GST_DEBUG_OBJECT (object, "current start: %" GST_TIME_FORMAT,
" 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,
* 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);
GST_DEBUG ("object:%p, inpoint:%" GST_TIME_FORMAT,
object, GST_TIME_ARGS (inpoint));
GST_DEBUG_OBJECT (object, "current inpoint: %" GST_TIME_FORMAT,
" new inpoint: %" GST_TIME_FORMAT, GST_TIME_ARGS (inpoint),
GST_TIME_ARGS (object->inpoint));
for (tmp = object->trackobjects; tmp; tmp = g_list_next (tmp)) {
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);
GST_DEBUG ("object:%p, duration:%" GST_TIME_FORMAT,
object, GST_TIME_ARGS (duration));
GST_DEBUG_OBJECT (object, "current duration: %" GST_TIME_FORMAT,
" new duration: %" GST_TIME_FORMAT, GST_TIME_ARGS (duration),
GST_TIME_ARGS (object->duration));
if (priv->layer && GES_TIMELINE_OBJECT_GET_CLASS (object)->snaps)
timeline = ges_timeline_layer_get_timeline (object->priv->layer);

View file

@ -1221,7 +1221,7 @@ timeline_slide_object (GESTimeline * timeline, GESTrackObject * obj,
{
/* FIXME implement me! */
GST_WARNING ("Slide mode editing not implemented yet");
GST_FIXME_OBJECT (timeline, "Slide mode editing not implemented yet");
return FALSE;
}

View file

@ -1665,7 +1665,7 @@ default_list_children_properties (GESTrackObject * object, guint * n_properties)
prop_hash_not_set:
{
*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;
}
}