diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dynparams/filter.c | 5 | ||||
-rw-r--r-- | examples/gstplay/player.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/dynparams/filter.c b/examples/dynparams/filter.c index 5178d28b..333820df 100644 --- a/examples/dynparams/filter.c +++ b/examples/dynparams/filter.c @@ -183,8 +183,9 @@ ui_control_create (GstElement * element, GtkWidget * control, _filter_ui_t * ui) /* create the dparam object */ dparam = gst_dpsmooth_new (G_PARAM_SPEC_VALUE_TYPE (specs[i])); g_object_set (G_OBJECT (dparam), "update_period", 2000000LL, NULL); - g_assert (gst_dpman_attach_dparam (dpman, - (gchar *) g_param_spec_get_name (specs[i]), dparam)); + if (!gst_dpman_attach_dparam (dpman, + (gchar *) g_param_spec_get_name (specs[i]), dparam)) + g_assert_not_reached (); gst_dpman_set_mode (dpman, "asynchronous"); g_signal_connect (widget, "value-changed", G_CALLBACK (cb_dynparm_value_changed), dparam); diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c index 4258d645..ca76978e 100644 --- a/examples/gstplay/player.c +++ b/examples/gstplay/player.c @@ -34,7 +34,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)); |