mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +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));
|
||||
|
||||
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 (newstate));
|
||||
|
||||
|
|
|
@ -364,8 +364,9 @@ gst_object_dispatch_properties_changed (GObject * object,
|
|||
/* need own category? */
|
||||
for (i = 0; i < n_pspecs; i++) {
|
||||
GST_CAT_LOG (GST_CAT_EVENT, "deep notification from %s to %s (%s)",
|
||||
GST_OBJECT_NAME (object), GST_OBJECT_NAME (gst_object),
|
||||
pspecs[i]->name);
|
||||
GST_OBJECT_NAME (object) ? GST_OBJECT_NAME (object) : "(null)",
|
||||
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_quark_from_string (pspecs[i]->name), (GstObject *) object,
|
||||
pspecs[i]);
|
||||
|
|
|
@ -1553,13 +1553,15 @@ gst_opt_scheduler_state_transition (GstScheduler * sched, GstElement * element,
|
|||
GstOptSchedulerGroup *group;
|
||||
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);
|
||||
|
||||
/* we check the state of the managing pipeline here */
|
||||
if (GST_IS_BIN (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) {
|
||||
case GST_STATE_PLAYING_TO_PAUSED:
|
||||
|
|
Loading…
Reference in a new issue