name = NULL;
}
}
- /* FIXME: thomas: does tee also have to notify a new pad ? */
- if (!tee->silent) {
- if (tee->last_message) g_free (tee->last_message);
- tee->last_message = g_strdup_printf ("new pad %s", name);
- g_object_notify (G_OBJECT (tee), "last_message");
- }
- /* g_object_notify (G_OBJECT (element), "new pad"); */
+ if (!tee->silent) {
+ g_free (tee->last_message);
+ tee->last_message = g_strdup_printf ("new pad %s", name);
+ g_object_notify (G_OBJECT (tee), "last_message");
+ }
srcpad = gst_pad_new_from_template (templ, name);
g_free (name);
case ARG_SILENT:
tee->silent = g_value_get_boolean (value);
break;
- case ARG_LAST_MESSAGE:
- g_value_set_string ((GValue *) value, tee->last_message);
- break;
default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
case ARG_SILENT:
g_value_set_boolean (value, tee->silent);
break;
+ case ARG_LAST_MESSAGE:
+ g_value_set_string ((GValue *) value, tee->last_message);
+ break;
default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
}
if (!tee->silent) {
- if (tee->last_message) g_free (tee->last_message);
+ g_free (tee->last_message);
tee->last_message = g_strdup_printf ("chain ******* (%s:%s)t (%d bytes, %llu) %p",
GST_DEBUG_PAD_NAME (outpad), GST_BUFFER_SIZE (buf), GST_BUFFER_TIMESTAMP (buf), buf);
g_object_notify (G_OBJECT (tee), "last_message");
name = NULL;
}
}
- /* FIXME: thomas: does tee also have to notify a new pad ? */
- if (!tee->silent) {
- if (tee->last_message) g_free (tee->last_message);
- tee->last_message = g_strdup_printf ("new pad %s", name);
- g_object_notify (G_OBJECT (tee), "last_message");
- }
- /* g_object_notify (G_OBJECT (element), "new pad"); */
+ if (!tee->silent) {
+ g_free (tee->last_message);
+ tee->last_message = g_strdup_printf ("new pad %s", name);
+ g_object_notify (G_OBJECT (tee), "last_message");
+ }
srcpad = gst_pad_new_from_template (templ, name);
g_free (name);
case ARG_SILENT:
tee->silent = g_value_get_boolean (value);
break;
- case ARG_LAST_MESSAGE:
- g_value_set_string ((GValue *) value, tee->last_message);
- break;
default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
case ARG_SILENT:
g_value_set_boolean (value, tee->silent);
break;
+ case ARG_LAST_MESSAGE:
+ g_value_set_string ((GValue *) value, tee->last_message);
+ break;
default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
}
if (!tee->silent) {
- if (tee->last_message) g_free (tee->last_message);
+ g_free (tee->last_message);
tee->last_message = g_strdup_printf ("chain ******* (%s:%s)t (%d bytes, %llu) %p",
GST_DEBUG_PAD_NAME (outpad), GST_BUFFER_SIZE (buf), GST_BUFFER_TIMESTAMP (buf), buf);
g_object_notify (G_OBJECT (tee), "last_message");