gst/gstelement.c (gst_element_dispose): More helpful message.

Original commit message from CVS:
2005-10-18  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.c (gst_element_dispose): More helpful message.
This commit is contained in:
Andy Wingo 2005-10-18 10:32:48 +00:00
parent bc13e0eb80
commit 265df9f026
3 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2005-10-18 Andy Wingo <wingo@pobox.com>
* gst/gstelement.c (gst_element_dispose): More helpful message.
2005-10-18 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstregistry.c: (gst_registry_scan_path_level):

2
common

@ -1 +1 @@
Subproject commit c177a03619c91e42d301ee181828f3ee4753b0bf
Subproject commit 1cb5d7b76a01c711674c752015089e70c394fa99

View file

@ -2274,7 +2274,14 @@ gst_element_dispose (GObject * object)
GST_CAT_INFO_OBJECT (GST_CAT_REFCOUNTING, element, "dispose");
g_return_if_fail (GST_STATE (element) == GST_STATE_NULL);
if (GST_STATE (element) != GST_STATE_NULL) {
g_critical
("\nTrying to dispose element %s, but it is not in the NULL state.\n"
"You need to explicitly set elements to the NULL state before\n"
"dropping the final reference, to allow them to clean up.\n",
GST_OBJECT_NAME (element));
return;
}
g_return_if_fail (GST_STATE_PENDING (element) == GST_STATE_VOID_PENDING);
/* first we break all our links with the outside */