mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-16 10:18:14 +00:00
Correcting some debug messages so that they don't core dump on Solaris by passing in NULL values as strings.
Original commit message from CVS: Correcting some debug messages so that they don't core dump on Solaris by passing in NULL values as strings.
This commit is contained in:
parent
2c4c302945
commit
c0aa2ff498
3 changed files with 9 additions and 5 deletions
|
@ -693,7 +693,8 @@ gst_bin_child_state_change (GstBin * bin, GstElementState oldstate,
|
||||||
g_return_if_fail (GST_IS_ELEMENT (child));
|
g_return_if_fail (GST_IS_ELEMENT (child));
|
||||||
|
|
||||||
GST_CAT_LOG (GST_CAT_STATES, "child %s changed state in bin %s from %s to %s",
|
GST_CAT_LOG (GST_CAT_STATES, "child %s changed state in bin %s from %s to %s",
|
||||||
GST_ELEMENT_NAME (child), GST_ELEMENT_NAME (bin),
|
GST_ELEMENT_NAME (child) ? GST_ELEMENT_NAME (child) : "(null)",
|
||||||
|
GST_ELEMENT_NAME (bin) ? GST_ELEMENT_NAME (bin) : "(null)",
|
||||||
gst_element_state_get_name (oldstate),
|
gst_element_state_get_name (oldstate),
|
||||||
gst_element_state_get_name (newstate));
|
gst_element_state_get_name (newstate));
|
||||||
|
|
||||||
|
|
|
@ -364,8 +364,9 @@ gst_object_dispatch_properties_changed (GObject * object,
|
||||||
/* need own category? */
|
/* need own category? */
|
||||||
for (i = 0; i < n_pspecs; i++) {
|
for (i = 0; i < n_pspecs; i++) {
|
||||||
GST_CAT_LOG (GST_CAT_EVENT, "deep notification from %s to %s (%s)",
|
GST_CAT_LOG (GST_CAT_EVENT, "deep notification from %s to %s (%s)",
|
||||||
GST_OBJECT_NAME (object), GST_OBJECT_NAME (gst_object),
|
GST_OBJECT_NAME (object) ? GST_OBJECT_NAME (object) : "(null)",
|
||||||
pspecs[i]->name);
|
GST_OBJECT_NAME (gst_object) ? GST_OBJECT_NAME (gst_object) :
|
||||||
|
"(null)", pspecs[i]->name);
|
||||||
g_signal_emit (gst_object, gst_object_signals[DEEP_NOTIFY],
|
g_signal_emit (gst_object, gst_object_signals[DEEP_NOTIFY],
|
||||||
g_quark_from_string (pspecs[i]->name), (GstObject *) object,
|
g_quark_from_string (pspecs[i]->name), (GstObject *) object,
|
||||||
pspecs[i]);
|
pspecs[i]);
|
||||||
|
|
|
@ -1553,13 +1553,15 @@ gst_opt_scheduler_state_transition (GstScheduler * sched, GstElement * element,
|
||||||
GstOptSchedulerGroup *group;
|
GstOptSchedulerGroup *group;
|
||||||
GstElementStateReturn res = GST_STATE_SUCCESS;
|
GstElementStateReturn res = GST_STATE_SUCCESS;
|
||||||
|
|
||||||
GST_DEBUG ("element \"%s\" state change (%04x)", GST_ELEMENT_NAME (element),
|
GST_DEBUG ("element \"%s\" state change (%04x)",
|
||||||
|
GST_ELEMENT_NAME (element) ? GST_ELEMENT_NAME (element) : "(null)",
|
||||||
transition);
|
transition);
|
||||||
|
|
||||||
/* we check the state of the managing pipeline here */
|
/* we check the state of the managing pipeline here */
|
||||||
if (GST_IS_BIN (element)) {
|
if (GST_IS_BIN (element)) {
|
||||||
if (GST_SCHEDULER_PARENT (sched) == element) {
|
if (GST_SCHEDULER_PARENT (sched) == element) {
|
||||||
GST_LOG ("parent \"%s\" changed state", GST_ELEMENT_NAME (element));
|
GST_LOG ("parent \"%s\" changed state",
|
||||||
|
GST_ELEMENT_NAME (element) ? GST_ELEMENT_NAME (element) : "(null)");
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_PLAYING_TO_PAUSED:
|
case GST_STATE_PLAYING_TO_PAUSED:
|
||||||
|
|
Loading…
Reference in a new issue