gst/schedulers/entryscheduler.c: fix for GST_DISABLE_DEBUG

Original commit message from CVS:
* gst/schedulers/entryscheduler.c:
(gst_entry_scheduler_remove_element):
fix for GST_DISABLE_DEBUG
* tools/gst-launch.c: (print_tag):
fixes for G_DISABLE_ASSERT
This commit is contained in:
Benjamin Otte 2004-08-03 14:29:31 +00:00
parent afc9c06eb5
commit f1472b4ed2
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2004-08-03 Benjamin Otte <otte@gnome.org>
* gst/schedulers/entryscheduler.c:
(gst_entry_scheduler_remove_element):
fix for GST_DISABLE_DEBUG
* tools/gst-launch.c: (print_tag):
fixes for G_DISABLE_ASSERT
2004-08-03 Benjamin Otte <otte@gnome.org>
* gst/gst.c: (gst_register_core_elements):

View file

@ -873,10 +873,8 @@ static void
gst_entry_scheduler_remove_element (GstScheduler * scheduler,
GstElement * element)
{
GstEntryScheduler *sched = GST_ENTRY_SCHEDULER (scheduler);
if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED)) {
GST_INFO_OBJECT (sched, "decoupled element %s added, ignoring",
GST_INFO_OBJECT (scheduler, "decoupled element %s added, ignoring",
GST_OBJECT_NAME (element));
return;
}

View file

@ -292,7 +292,8 @@ print_tag (const GstTagList * list, const gchar * tag, gpointer unused)
gchar *str;
if (gst_tag_get_type (tag) == G_TYPE_STRING) {
g_assert (gst_tag_list_get_string_index (list, tag, i, &str));
if (!gst_tag_list_get_string_index (list, tag, i, &str))
g_assert_not_reached ();
} else {
str =
g_strdup_value_contents (gst_tag_list_get_value_index (list, tag, i));