add: if (bvw->priv->play == NULL || bvw->priv->mrl == NULL) return NULL;
context: get_list_of_type (BaconVideoWidget * bvw, const gchar * type_name){  GList *streaminfo = NULL, *ret = NULL;  gint num = 0;  g_object_get (G_OBJECT (bvw->priv->play), "stream-info", &streaminfo, NULL);  streaminfo = g_list_copy (streaminfo);  g_list_foreach (streaminfo, (GFunc) g_object_ref, NULL);  for ( ; streaminfo != NULL; streaminfo = streaminfo->next) {    GObject *info = streaminfo->data;    gint type;    GParamSpec *pspec;    GEnumValue *val;    if (!info)      continue;    g_object_get (info, "type", &type, NULL);    pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (info), "type");    val = g_enum_get_value (G_PARAM_SPEC_ENUM (pspec)->enum_class, type);    if (strstr (val->value_name, type_name)) {      ret = g_list_prepend (ret, g_strdup_printf ("%s %d", type_name, num++));    }  }  g_list_foreach (streaminfo, (GFunc) g_object_unref, NULL);  g_list_free (streaminfo);  return g_list_reverse (ret);}